Re: use has_privs_of_role() for pg_hba.conf

Joe Conway <mail@joeconway.com>

From: Joe Conway <mail@joeconway.com>
To: Nathan Bossart <nathandbossart@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michael Paquier <michael@paquier.xyz>, Joshua Brindle <joshua.brindle@crunchydata.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2022-10-08T14:38:00Z
Lists: pgsql-hackers
On 10/7/22 17:58, Nathan Bossart wrote:
> On Fri, Oct 07, 2022 at 04:18:59PM -0400, Tom Lane wrote:
>> There's another problem there, which is that buildfarm animals
>> using -DENFORCE_REGRESSION_TEST_NAME_RESTRICTIONS will complain
>> about role names that don't start with "regress_".
> 
> Huh, I hadn't noticed that one before.  It looks like roles must start with
> "regress_" and database names must include "regression", so I ended up
> using "regress_regression_group" for the samegroup/samerole tests.


Thanks -- looks good to me. If there are no other comments or concerns, 
I will commit/push by the end of the weekend.

-- 
Joe Conway
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com



Commits

  1. Add TAP tests for role membership in pg_hba.conf