.pgpass file and unix domain sockets

From: Joachim Wieland <joe(at)mcknight(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: .pgpass file and unix domain sockets
Date: 2006-05-10 22:54:25
Message-ID: 20060510225425.GA4944@mcknight.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The documentation for the .pgpass file seems to be incorrect with respect to
unix domain sockets.

There's also a user comment saying that:

http://www.postgresql.org/docs/8.1/interactive/libpq-pgpass.html

The documentation suggests that the hostname part of .pgpass can be set to
"localhost" to allow for automatic unix domain socket authentication. This
doesn't seem to work. Instead you have to set the directory of the socket as
the hostname part.

If this was never supposed to actually work as described, I'll submit a doc
patch that also explains in more detail how to use .pgpass for unix sockets.

Joachim

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-05-10 23:18:39 pgsql: Clean up code associated with updating pg_class statistics
Previous Message Jim C. Nasby 2006-05-10 22:23:29 Re: sblock state on FreeBSD 6.1