Re: client socket TIME_WAIT state after PQfinish

From: Nicolas Barbier <nicolas(dot)barbier(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Guillaume Du Pasquier <guillaume(dot)dupasquier(at)sensometrix(dot)ch>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: client socket TIME_WAIT state after PQfinish
Date: 2010-09-27 17:48:59
Message-ID: AANLkTimAS-i_qSZLbw=0_LARwEyOJeROcEWOHaytMki0@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

2010/9/27 Robert Haas <robertmhaas(at)gmail(dot)com>:

> On Mon, Sep 27, 2010 at 12:56 PM, Guillaume Du Pasquier
> <guillaume(dot)dupasquier(at)sensometrix(dot)ch> wrote:
>
>> Our client runs on the same machine as the postgresql server.
>> Would it be possible to use PF_UNIX sockets ?
>
> Yeah, actually that's the default, if you just run "psql" with no
> parameters.  It looks for a socket in /tmp/.s.PGSQL.5432.

It depends on the interface; e.g., the JDBC driver doesn't support
unix sockets, AFAIR.

Nicolas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2010-09-27 17:53:45 Re: trailing whitespace in psql table output
Previous Message Alvaro Herrera 2010-09-27 17:34:00 Re: trailing whitespace in psql table output