Re: Add a new BGWORKER_BYPASS_ROLELOGINCHECK flag

From: "Drouvot, Bertrand" <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Add a new BGWORKER_BYPASS_ROLELOGINCHECK flag
Date: 2023-10-11 06:48:04
Message-ID: d75f9c57-3939-4044-ab87-d0b64074c3e1@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 10/11/23 5:40 AM, Michael Paquier wrote:
> On Wed, Oct 11, 2023 at 08:26:42AM +0900, Michael Paquier wrote:
>
> /* flags for InitPostgres() */
> #define INIT_PG_LOAD_SESSION_LIBS 0x0001
> #define INIT_PG_OVERRIDE_ALLOW_CONNS 0x0002
> +#define INIT_PG_BYPASS_ROLE_LOGIN 0x0004
>
> In 0002, I am not sure that this is the best name for this new flag.
> There is consistency with the bgworker part, for sure, but shouldn't
> we name that OVERRIDE_ROLE_LOGIN instead in miscadmin.h?

Yeah, agree. Changed in v12 attached.

Regards,

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

Attachment Content-Type Size
v12-0001-Allow-background-workers-to-bypass-login-check.patch text/plain 9.3 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Zhijie Hou (Fujitsu) 2023-10-11 06:48:44 Add null termination to string received in parallel apply worker
Previous Message Peter Eisentraut 2023-10-11 06:43:21 Re: [PoC] run SQL over ciphertext