pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ua01020@flashnet.it
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] pg_hba.conf
Date: Sun, 28 Mar 1999 19:08:08 -0500
Message-ID: <24430.922666088@sss.pgh.pa.us> (raw)
In-Reply-To: <99032822051500.00581@zeman>

Antonello De Santis <ua01020@flashnet.it> writes:
> My pg_hba.conf file looks like this:
> local        all					trust
> host         all         192.168.1.0     255.255.255.0    trust

That's OK as far as it goes, and I imagine that connections from your
other machine will work.  But for TCP connections from the same machine
the postmaster is on, you *also* need

host         all         127.0.0.1     255.255.255.255   trust

because local TCP connections usually go via the standard "loopback
address" 127.0.0.1, not via any external IP address your machine may
have.

			regards, tom lane



view thread (3+ messages)

Message-ID: <24430.922666088@sss.pgh.pa.us>
Permalink:  ../24430.922666088@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24430.922666088@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-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ua01020@flashnet.it
  Subject: Re: [INTERFACES] pg_hba.conf
  In-Reply-To: <24430.922666088@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