Thread: [COMMITTERS] pgsql: Perform only one ReadControlFile() during startup.
Perform only one ReadControlFile() during startup. Previously we read the control file in multiple places. But soon the segment size will be configurable and stored in the control file, and that needs to be available earlier than it currently is needed. Instead of adding yet another place where it's read, refactor things so there's a single processing of the control file during startup (in EXEC_BACKEND that's every individual backend's startup). Author: Andres Freund Discussion: http://postgr.es/m/20170913092828.aozd3gvvmw67gmyc@alap3.anarazel.de Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/8356753c212a5865469c9befc4cf1e637a9d8bbc Modified Files -------------- src/backend/access/transam/xlog.c | 48 ++++++++++++++++++++++++++----------- src/backend/postmaster/postmaster.c | 6 +++++ src/backend/tcop/postgres.c | 3 +++ src/include/access/xlog.h | 1 + 4 files changed, 44 insertions(+), 14 deletions(-) -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers