Pass CAC as an argument to the backend process
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 12 Mar 2024 11:42:36 +0000 (13:42 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 12 Mar 2024 11:42:36 +0000 (13:42 +0200)
commitd162c3a73bf14416ff4012de6f01c3d825610f70
tree7e67b7887e85cab6341b64e72c73dd5b5c326af8
parent73f7fb2a4c4480cfebc52dddf0049e69b830b214
Pass CAC as an argument to the backend process

We used to smuggle it to the child process in the Port struct, but it
seems better to pass it down as a separate argument. This paves the
way for the next commit, which moves the initialization of the Port
struct to the backend process, after forking.

Reviewed-by: Tristan Partin, Andres Freund
Discussion: https://www.postgresql.org/message-id/7a59b073-5b5b-151e-7ed3-8b01ff7ce9ef@iki.fi
src/backend/postmaster/postmaster.c
src/include/libpq/libpq-be.h