Re: initdb recommendations - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: initdb recommendations
Date
Msg-id 3b25d6e0-6e4f-a6cf-71a9-8df603efc422@2ndQuadrant.com
Whole thread Raw
In response to Re: initdb recommendations  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On 7/22/19 1:40 PM, Andres Freund wrote:
> Hi,
>
> On 2019-07-22 13:02:13 -0400, Andrew Dunstan wrote:
>> There are a few things we could do. We could force trust auth, or we
>> could add an ident map that allowed $USER to login as buildfarm. Finding
>> all the places we would need to fix that could be a fun project ...
> Perhaps we could actually do so automatically when the initdb invoking
> user isn't the same as the OS user? Imo that'd be generally quite
> useful, and not just for the regression tets.
>

yeah, although I think that's a separate exercise.


So we'd have something like


in pg_hba.conf


    local    all all    peer map=datadir_owner


and in pg_ident.conf


    datadir_owner $USER $superuser


cheers


andrew




-- 
Andrew Dunstan                https://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




pgsql-hackers by date:

Previous
From: Alexander Korotkov
Date:
Subject: Re: Psql patch to show access methods info
Next
From: Alexander Korotkov
Date:
Subject: Re: Psql patch to show access methods info