postgresql/src/include/libpq
Michael Paquier d951052a9e Allow parallel workers to retrieve some data from Port
This commit moves authn_id into a new global structure called
ClientConnectionInfo (mapping to a MyClientConnectionInfo for each
backend) which is intended to hold all the client information that
should be shared between the backend and any of its parallel workers,
access for extensions and triggers being the primary use case.  There is
no need to push all the data of Port to the workers, and authn_id is
quite a generic concept so using a separate structure provides the best
balance (the name of the structure has been suggested by Robert Haas).

While on it, and per discussion as this would be useful for a potential
SYSTEM_USER that can be accessed through parallel workers, a second
field is added for the authentication method, copied directly from
Port.

ClientConnectionInfo is serialized and restored using a new parallel
key and a structure tracks the length of the authn_id, making the
addition of more fields straight-forward.

Author: Jacob Champion
Reviewed-by: Bertrand Drouvot, Stephen Frost, Robert Haas, Tom Lane,
Michael Paquier, Julien Rouhaud
Discussion: https://postgr.es/m/793d990837ae5c06a558d58d62de9378ab525d83.camel@vmware.com
2022-08-24 12:57:13 +09:00
..
auth.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
be-fsstubs.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
be-gssapi-common.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
crypt.h Improve error handling of cryptohash computations 2022-01-11 09:55:16 +09:00
hba.h Add system view pg_ident_file_mappings 2022-03-29 10:15:48 +09:00
ifaddr.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq-be.h Allow parallel workers to retrieve some data from Port 2022-08-24 12:57:13 +09:00
libpq-fs.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
libpq.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00
pqcomm.h Remove configure probes for sockaddr_storage members. 2022-08-22 17:50:30 +12:00
pqformat.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pqmq.h Update copyright for 2022 2022-01-07 19:04:57 -05:00
pqsignal.h Emulate sigprocmask(), not sigsetmask(), on Windows. 2022-07-16 17:03:38 +12:00
sasl.h Fix collection of typos in the code and the documentation 2022-03-15 11:29:35 +09:00
scram.h Apply PGDLLIMPORT markings broadly. 2022-04-08 08:16:38 -04:00