Re: [PATCH] Expose port->authn_id to extensions and triggers

From: Andres Freund <andres(at)anarazel(dot)de>
To: Jacob Champion <pchampion(at)vmware(dot)com>
Cc: "tgl(at)sss(dot)pgh(dot)pa(dot)us" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "rjuju123(at)gmail(dot)com" <rjuju123(at)gmail(dot)com>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, "sfrost(at)snowman(dot)net" <sfrost(at)snowman(dot)net>, "michael(at)paquier(dot)xyz" <michael(at)paquier(dot)xyz>
Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers
Date: 2022-03-23 23:54:36
Message-ID: 20220323235436.2fx2d67s6gztlb2p@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2022-03-23 23:06:14 +0000, Jacob Champion wrote:
> On Wed, 2022-03-23 at 19:00 -0400, Tom Lane wrote:
> > Hm. I was more envisioning getting the "sharable" info out of Port
> > entirely, although I'm not quite sure where it should go instead.
>
> If it helps, I can move the substruct out and up to a new global struct
> (MyProcShared?). At this point I think it's mostly search-and-replace.

Perhaps alongside CurrentUserId etc in miscinit.c? It would be nicer if all
those were together in a struct, but oh well.

Another option would be to make it a GUC. With a bit of care it could be
automatically synced by the existing parallelism infrastructure...

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Munro 2022-03-24 00:17:01 Re: Avoid erroring out when unable to remove or parse logical rewrite files to save checkpoint work
Previous Message Jacob Champion 2022-03-23 23:52:06 Re: [PATCH] Accept IP addresses in server certificate SANs