From: Michael Paquier <michael@paquier.xyz>
To: Jacob Champion <pchampion@vmware.com>
Cc: sfrost@snowman.net <sfrost@snowman.net>
Cc: rjuju123@gmail.com <rjuju123@gmail.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: tgl@sss.pgh.pa.us <tgl@sss.pgh.pa.us>
Cc: andres@anarazel.de <andres@anarazel.de>
Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers
Date: Thu, 7 Apr 2022 09:13:32 +0900
Message-ID: <Yk4srPndS0tuvJso@paquier.xyz> (raw)
In-Reply-To: <300712f85a30acecaa5c8f16c968b95537bfebd8.camel@vmware.com>
References: <20220326171550.ywohmkvngh4qc2fo@alap3.anarazel.de>
<88926.1648317459@sss.pgh.pa.us>
<20220326183637.eopabpewkhpjyx5k@alap3.anarazel.de>
<1add3bbf7790214c5a240edbb09b2632e402efb5.camel@vmware.com>
<20220329235332.z4q5hgv7jsmcavzv@alap3.anarazel.de>
<214737816b45c29d4aea01ba161f0a2d7876432e.camel@vmware.com>
<YkveFfb8VAnKUHnM@paquier.xyz>
<6f7d988668974bb6c0078f6c026b456cd79ae314.camel@vmware.com>
<Yk108M6LazJT7Vsj@paquier.xyz>
<300712f85a30acecaa5c8f16c968b95537bfebd8.camel@vmware.com>
On Wed, Apr 06, 2022 at 07:16:43PM +0000, Jacob Champion wrote:
> I assumed that we would follow the existing model of "(de)serialize a
> whole struct", rather than pulling it apart into many separate keys. If
> it got too complicated then we could consider introducing a
> SerializedParallelProcInfo struct like some of the other functions do.
> Maybe that wouldn't work so well if many of the fields are strings?
>
> Is there a significant cost to changing this later, if one approach
> turns out to be wrong?
I don't think this is going to be an issue as long as we don't change
the definitions of MyParallelProcInfo, Port or PARALLEL_KEY_* in the
stable branch. My guess is that we are fine to switch to one approach
or the other as this is just some internal communication logic between
the parallel leader and its workers.
What is the feeling of others about this patch and the introduction of
ParallelProcInfo (or ParallelPortInfo?) to store the authn coming from
Port? The feature freeze is very close.
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers@postgresql.org
Cc: michael@paquier.xyz, pchampion@vmware.com, sfrost@snowman.net, rjuju123@gmail.com, tgl@sss.pgh.pa.us, andres@anarazel.de
Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers
In-Reply-To: <Yk4srPndS0tuvJso@paquier.xyz>
References: <20220326171550.ywohmkvngh4qc2fo@alap3.anarazel.de> <88926.1648317459@sss.pgh.pa.us> <20220326183637.eopabpewkhpjyx5k@alap3.anarazel.de> <1add3bbf7790214c5a240edbb09b2632e402efb5.camel@vmware.com> <20220329235332.z4q5hgv7jsmcavzv@alap3.anarazel.de> <214737816b45c29d4aea01ba161f0a2d7876432e.camel@vmware.com> <YkveFfb8VAnKUHnM@paquier.xyz> <6f7d988668974bb6c0078f6c026b456cd79ae314.camel@vmware.com> <Yk108M6LazJT7Vsj@paquier.xyz> <300712f85a30acecaa5c8f16c968b95537bfebd8.camel@vmware.com> <Yk4srPndS0tuvJso@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox