Re: 127.0.0.1 or localhost - Mailing list pgsql-docs

From Tom Lane
Subject Re: 127.0.0.1 or localhost
Date
Msg-id 144187.1604099069@sss.pgh.pa.us
Whole thread Raw
In response to 127.0.0.1 or localhost  (PG Doc comments form <noreply@postgresql.org>)
List pgsql-docs
PG Doc comments form <noreply@postgresql.org> writes:
> It's not actually a problem, it's a question. pgpass in my case, has two
> lines, one with 127.0.0.1 and another with localhost
> what would be the difference from one to another. ??

AFAIR, the field is matched to how you wrote the hostname in the
connection parameters.

Also, it looks like there's a special case to consider 'localhost'
as matching a Unix-socket connection, if the socket is in the
installation's default socket directory.

            regards, tom lane



pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: 127.0.0.1 or localhost
Next
From: Thomas Munro
Date:
Subject: Re: What does "[backends] should seldom or never need to wait for a write to occur" mean?