Re: BUG #12260: trust entry in pg_hba not working as documented - Mailing list pgsql-bugs

From Heikki Linnakangas
Subject Re: BUG #12260: trust entry in pg_hba not working as documented
Date
Msg-id 5491AB34.5090005@vmware.com
Whole thread Raw
In response to BUG #12260: trust entry in pg_hba not working as documented  (pauld@jobready.com.au)
List pgsql-bugs
On 12/17/2014 02:53 PM, pauld@jobready.com.au wrote:
> I have the following pg_hba entry on a PostgreSQL server (10.A.B.C)
>
> host repmgr all 10.X.Y.Z/32 trust
>
> (the user repmgr was created using "createuser --login --superuser repmgr"
> via the postgres system account)

You mixed up the "database" and "user" columns in pg_hba.conf. The
syntax is:

# host       DATABASE  USER  ADDRESS  METHOD  [OPTIONS]

So your trust-entry above applies to all users connecting to "repmgr"
database. Try:

host all repmgr 10.X.Y.Z/32 trust

- Heikki

pgsql-bugs by date:

Previous
From: fcs1@poczta.onet.pl
Date:
Subject: BUG #12259: Bug in restore Serial definition
Next
From: David G Johnston
Date:
Subject: Re: BUG #12257: Cause for: Exception 0xC0000005