Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncFmT-0002c9-HJ for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Apr 2022 00:13:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ncFmS-0003yI-AS for pgsql-hackers@arkaria.postgresql.org; Thu, 07 Apr 2022 00:13:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncFmS-0003y1-13 for pgsql-hackers@lists.postgresql.org; Thu, 07 Apr 2022 00:13:44 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ncFmP-0003Hf-2E for pgsql-hackers@postgresql.org; Thu, 07 Apr 2022 00:13:43 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 0F3E93201EA6; Wed, 6 Apr 2022 20:13:37 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 06 Apr 2022 20:13:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; bh=RRBU9H+zQBKZdJJWE7rJJ86VyO4VIeUgppcoBf 1b//I=; b=eARdWWhvs13ptwW7vWrjWjaAW+Mc9cZzofuI5JxIdtBUMi65JxbvGg IeMt95JKmIBKwuSkUkX2RZwan4nyfPM17BFxvNII6V5DTTd1jc8XkcVSEqIHJGim RbFzbxaH5Fnff2K1WMRxXFd+Spo2GA9TcsBSVERYlayzQCXMIYnfPntKHLvOcO0N /rQhQck+kehlT4EvEfnYItJ/Vg37dqLQ9qwVUD2RaYFjbUx2moQImHMTvhEU3BQ6 NwsDtwTZDwP0a060UCZQhGR75G2efDfnZ7rDSHWPLxh5ivub3+zT2HGZp6GlQEFa pZ05kALdh4wWXQO2sYiE4Xge5Kmn5jDg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; bh=RRBU9H+zQBKZdJJWE 7rJJ86VyO4VIeUgppcoBf1b//I=; b=UZ3hTetr355dUSESUXtNPM4Dq24782bwJ qy6IeahPKqNHF4HUTiXIx+sjzd8P9ylhJniQ5aXU+rqcrVn/i3BFTnzBHuef7Yts xou/m5XRYJ916novSm9TNU5hLQ5o/Rc/ogIcoPkTpJcH8t1XbxVAqihMIWxcmPLf VcAtB5ZEBhFVsChxTYk9mIDBoeXvfNL2uEMg4FpTfVVYGZ30U7sa+46DWrtiEC9p Qk7aM6Zr9fffz6KR4sbmhhOXpkmcm6izEl1iN7mXoCsKcIcDOgxVWNH1b6dIbt/n T0wu/JtS5Nsmzvpt74A6AQyr3aEc/gE/10RPshnBpIHN1iqafOlLA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudejjedgfedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpedvgeduuefhtdeuleettdevjeeh heeiveeuieegleetgeeljeelieeuieehgeevhfenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 6 Apr 2022 20:13:34 -0400 (EDT) Date: Thu, 7 Apr 2022 09:13:32 +0900 From: Michael Paquier To: Jacob Champion Cc: "sfrost@snowman.net" , "rjuju123@gmail.com" , "pgsql-hackers@postgresql.org" , "tgl@sss.pgh.pa.us" , "andres@anarazel.de" Subject: Re: [PATCH] Expose port->authn_id to extensions and triggers Message-ID: 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> <6f7d988668974bb6c0078f6c026b456cd79ae314.camel@vmware.com> <300712f85a30acecaa5c8f16c968b95537bfebd8.camel@vmware.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3mmcJFnD10Ni+MsG" Content-Disposition: inline In-Reply-To: <300712f85a30acecaa5c8f16c968b95537bfebd8.camel@vmware.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --3mmcJFnD10Ni+MsG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? >=20 > 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 --3mmcJFnD10Ni+MsG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmJOLKwACgkQnvQgOdby QH16TQ/8CxCni4GI2ikHFuLOdK6NbNsxHRyb4VEU1+23qo9xVdU9BQ0bybgR+wCm H9Ibqbn8GMHvM8LR0iALqPZO6P5lpZV0b6RnR33LXqNWvAuvlogqCSKWS8WujSdF RW1ZF/T7K27eLpnXr2u+xmjK3h0zFjhPMxdOAmy6Ke4QzmC6ZcEyGsmQmeb/o5Pt 9NZs5Opxv54vMhi1tJfpVRjmFd0iqa05kSLAcG+jhoFaFeRv9Cz015tVVBQWaVXz xYUAZNMq06b/gy93W3dnr6pnkIXodZKSSJuUB5y755sCvB5R8+44dntbQ3iUKl3C 0znb1e9baLsyTnQT2wwgWC2Qqnx7V93Y+M1gN9yax+VJ0oCpFWpYoQz5PfNW/sWj UwRyBC46Ow3a7E+i5kaYGiU8JteIXjKcJ3CkQmDouQWtbUfj8AIOLg1HsmYrdMDn hjfmrCU7TTVCUo3gdRE/VPGZJSdZZv+4F2iWlsFu0ZZyErNpRVeB/wyEs/XARJZV ithvugK+/74YgWJbnbIMmOiQ8vuGgUShFKIwX3ThTPIcU/HFtFEivTjJLz2j3bLW juy3Xsz/+w0VJ67X7AlNBaflgMn8j4dQS8n7StvcHCznpT8lVgVYx1RMqlxh5dF6 8gy5aVzM0pO4BUu8yRiqKp6ru3EtdOxjIeSC146kOEr+YvuWl4k= =e9fS -----END PGP SIGNATURE----- --3mmcJFnD10Ni+MsG--