pgsql: Pass CAC as an argument to the backend process

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Pass CAC as an argument to the backend process
Date: 2024-03-12 11:45:23
Message-ID: E1rk0ZO-003Pjx-RS@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d162c3a73bf14416ff4012de6f01c3d825610f70

Modified Files
--------------
src/backend/postmaster/postmaster.c | 44 +++++++++++++++++++++++++++----------
src/include/libpq/libpq-be.h | 12 ----------
2 files changed, 32 insertions(+), 24 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Heikki Linnakangas 2024-03-12 13:35:36 pgsql: Fix copying SockAddr struct
Previous Message Heikki Linnakangas 2024-03-12 08:40:46 pgsql: Disconnect if socket cannot be put into non-blocking mode