Re: use has_privs_of_role() for pg_hba.conf - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: use has_privs_of_role() for pg_hba.conf
Date
Msg-id Yz/Ii6dr1CSu4Bnv@paquier.xyz
Whole thread Raw
In response to Re: use has_privs_of_role() for pg_hba.conf  (Nathan Bossart <nathandbossart@gmail.com>)
Responses Re: use has_privs_of_role() for pg_hba.conf
List pgsql-hackers
On Thu, Oct 06, 2022 at 08:27:11PM -0700, Nathan Bossart wrote:
> On Fri, Oct 07, 2022 at 11:06:47AM +0900, Michael Paquier wrote:
>> Rather than putting that in a separate script, which means
>> initializing a new node, etc. could it be better to put that in
>> 001_password.pl instead?  It would be cheaper.
>
> Works for me.

Thanks.  I would perhaps use names less generic than role{1,2,3} for
the roles or "role1" for the database name, but the logic looks
sound.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Kyotaro Horiguchi
Date:
Subject: Re: START_REPLICATION SLOT causing a crash in an assert build
Next
From: Yugo NAGATA
Date:
Subject: make_ctags: use -I option to ignore pg_node_attr macro