Re: BUG #12260: trust entry in pg_hba not working as documented

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: <pauld(at)jobready(dot)com(dot)au>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #12260: trust entry in pg_hba not working as documented
Date: 2014-12-17 16:11:32
Message-ID: 5491AB34.5090005@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 12/17/2014 02:53 PM, pauld(at)jobready(dot)com(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David G Johnston 2014-12-17 16:21:57 Re: BUG #12257: Cause for: Exception 0xC0000005
Previous Message Alvaro Herrera 2014-12-17 14:18:36 Re: BUG #11768: "jsonb ?" - not support int type operator