pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: c.santos@asctechnologies.com
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: 127.0.0.1 or localhost
Date: Fri, 30 Oct 2020 19:04:29 -0400
Message-ID: <144187.1604099069@sss.pgh.pa.us> (raw)
In-Reply-To: <160408279022.7809.11205153599276240373@wrigleys.postgresql.org>
References: <160408279022.7809.11205153599276240373@wrigleys.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





view thread (2+ messages)

Message-ID: <144187.1604099069@sss.pgh.pa.us>
Permalink:  ../144187.1604099069@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/144187.1604099069@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, c.santos@asctechnologies.com, pgsql-docs@lists.postgresql.org
  Subject: Re: 127.0.0.1 or localhost
  In-Reply-To: <144187.1604099069@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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