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

Поиск
Список
Период
Сортировка
Искать
От
Robert Haas
Тема
Re: [PATCH] Expose port->authn_id to extensions and triggers
Дата
Msg-id
CA+TgmoY22u4JUuPtA7BYs2M8o9zWJh7_dViwoqUBU7DS+_kCyA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Julien Rouhaud <rjuju123@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Julien Rouhaud <rjuju123@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Julien Rouhaud <rjuju123@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Stephen Frost <sfrost@snowman.net>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Stephen Frost <sfrost@snowman.net>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andres Freund <andres@anarazel.de>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Expose port->authn_id to extensions and triggers Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Robert Haas <robertmhaas@gmail.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Joe Conway <mail@joeconway.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Andy Fan <zhihuifan1213@163.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Tom Lane <tgl@sss.pgh.pa.us>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <jchampion@timescale.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Expose port->authn_id to extensions and triggers Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Re: [PATCH] Expose port->authn_id to extensions and triggers Jacob Champion <pchampion@vmware.com>
On Fri, Jun 3, 2022 at 10:04 AM Tom Lane  wrote:
> I agree with Robert's complaint that Parallel is far too generic
> a term here.  Also, the fact that this data is currently in struct
> Port seems like an artifact.

Why do we call this thing a Port, anyway?

I think I'd feel more comfortable here if we were defining what went
into which struct on some semantic basis rather than being like, OK,
so all the stuff we want to serialize goes into struct #1, and the
stuff we don't want to serialize goes into struct #2. I suppose if
it's just based on whether or not we want to serialize it, then the
placement of future additions will just be based on how people happen
to feel about the thing they're adding right at that moment, and there
won't be any consistency.

One could imagine dividing the Port struct into a couple of different
structs, e.g.

AuthenticationState: stuff that is needed only during authentication
and can be discarded thereafter (e.g. the HBA line, at least if the
comment is to be believed)
ClientCommunicationState: stuff that is used to communicate with the
client but doesn't need to be or can't be shared (e.g. the SSL object
itself)
ClientConnectionInfo: stuff that someone might want to look at for
information purposes at any time (e.g. authn_id, apparently)

Then we could serialize the third of these, keep the second around but
not serialize it, and free the first once connection setup is
complete.

-- 
Robert Haas
EDB: http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления
От: Daniel Gustafsson
Дата:
От: Stephen Frost
Дата:
FAQ