pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wei Weng <wweng@cs.columbia.edu>
Cc: pgsql-sql@postgresql.org
Subject: Re: What's wrong with this identification configuration?
Date: Thu, 13 Feb 2003 00:22:30 -0500
Message-ID: <10692.1045113750@sss.pgh.pa.us> (raw)
In-Reply-To: <200302111626.01386.wweng@cs.columbia.edu>
References: <200302111626.01386.wweng@cs.columbia.edu>

Wei Weng <wweng@cs.columbia.edu> writes:
> This is the idenfication setup in my /var/lib/pgsql/data/pg_hba.conf
> local   all                                             trust
> host    all     127.0.0.1       255.255.255.255         trust

> This is supposed to authenticate any user to be able to access my postgresql 
> system any time, no?

Any local user, yes.

> But this is what happened:
> [root@Monet wweng]# su postgres
> bash-2.05a$ psql template1
> psql: FATAL 1:  No pg_hba.conf entry for host localhost, user postgres, 
> database template1

Did you recently change the pg_hba.conf file?  If so, maybe you forgot
to SIGHUP the postmaster to get it to re-read the file.  Otherwise, my
only thought is that you aren't talking to the same postmaster you
thought you were ... that pg_hba.conf should definitely let in any
local connection ...

			regards, tom lane



view thread (2+ messages)

Message-ID: <10692.1045113750@sss.pgh.pa.us>
Permalink:  ../10692.1045113750@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10692.1045113750@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, wweng@cs.columbia.edu
  Subject: Re: What's wrong with this identification configuration?
  In-Reply-To: <10692.1045113750@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