pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@postgresql.org
Subject: pgsql: Perform only one ReadControlFile() during startup.
Date: Thu, 14 Sep 2017 21:18:53 +0000
Message-ID: <E1dsbXB-0006pK-EE@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

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


view thread (21+ messages)  latest in thread

Message-ID: <E1dsbXB-0006pK-EE@gemulon.postgresql.org>
Permalink:  ../E1dsbXB-0006pK-EE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1dsbXB-0006pK-EE@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Perform only one ReadControlFile() during startup.
  In-Reply-To: <E1dsbXB-0006pK-EE@gemulon.postgresql.org>
  References: <E1dsbXB-0006pK-EE@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox