pgsql: Delay updating control file to "in production" - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Delay updating control file to "in production"
Date
Msg-id E1bmkJp-0007Pj-6s@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Delay updating control file to "in production"

Move the updating of the control file to "in production" status until
the point where WAL writes are allowed.  Before, there could be a
significant gap between the control file update and write transactions
actually being allowed.  This makes it more reliable to use the control
status to verify the end of a promotion.

From: Michael Paquier <michael.paquier@gmail.com>

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/ebdf5bf7d1c97a926e2b0cb6523344c2643623c7

Modified Files
--------------
src/backend/access/transam/xlog.c | 31 +++++++++++++++++++++----------
1 file changed, 21 insertions(+), 10 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: pg_ctl: Add tests for promote action
Next
From: Peter Eisentraut
Date:
Subject: pgsql: pg_ctl: Add wait option to promote action