pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feed127.0.0.1 or localhost
2+ messages / 2 participants
[nested] [flat]
* 127.0.0.1 or localhost
@ 2020-10-30 18:33 PG Doc comments form <noreply@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2020-10-30 18:33 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: c.santos@asctechnologies.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/9.5/libpq-pgpass.html
Description:
Hi All,
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. ??
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: 127.0.0.1 or localhost
@ 2020-10-30 23:04 Tom Lane <tgl@sss.pgh.pa.us>
parent: PG Doc comments form <noreply@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2020-10-30 23:04 UTC (permalink / raw)
To: c.santos@asctechnologies.com; +Cc: pgsql-docs@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-10-30 23:04 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-10-30 18:33 127.0.0.1 or localhost PG Doc comments form <noreply@postgresql.org>
2020-10-30 23:04 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox