pgsql: Move code for backend startup to separate file

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Move code for backend startup to separate file
Date: 2024-03-18 09:40:36
Message-ID: E1rm9Tv-004QMq-W9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Move code for backend startup to separate file

This is code that runs in the backend process after forking, rather
than postmaster. Move it out of postmaster.c for clarity.

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/05c3980e7f473ac2061dad9bbb7a9f0ede0279d9

Modified Files
--------------
src/backend/postmaster/launch_backend.c | 1 +
src/backend/postmaster/postmaster.c | 762 +------------------------------
src/backend/tcop/Makefile | 1 +
src/backend/tcop/backend_startup.c | 778 ++++++++++++++++++++++++++++++++
src/backend/tcop/meson.build | 1 +
src/include/postmaster/postmaster.h | 4 +-
src/include/tcop/backend_startup.h | 41 ++
7 files changed, 829 insertions(+), 759 deletions(-)

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2024-03-18 11:12:46 pgsql: Add some const decorations
Previous Message Michael Paquier 2024-03-18 05:21:48 pgsql: Remove references to backup_fs_hot() in Cluster.pm