Skip site navigation (1) Skip section navigation (2)

pgsql: Treat a WAL sender process that hasn't started streaming yetas

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Treat a WAL sender process that hasn't started streaming yetas
Date: 2011-01-15 14:38:49
Message-ID: E1Pe7HF-0004cc-GO@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Treat a WAL sender process that hasn't started streaming yet as a regular
backend, as far as the postmaster shutdown logic is concerned. That means,
fast shutdown will wait for WAL sender processes to exit before signaling
bgwriter to finish. This avoids race conditions between a base backup stopping
or starting, and bgwriter writing the shutdown checkpoint WAL record. We don't
want e.g the end-of-backup WAL record to be written after the shutdown
checkpoint.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=8f5d65e916796aaee1bf7dd66daf45ca56cd13be

Modified Files
--------------
src/backend/replication/walsender.c |   10 ++++++++++
src/backend/storage/ipc/pmsignal.c  |   23 +++++++++++++++++++++--
src/include/storage/pmsignal.h      |    1 +
3 files changed, 32 insertions(+), 2 deletions(-)

pgsql-committers by date

Next:From: Bruce MomjianDate: 2011-01-15 16:55:16
Subject: pgsql: Apply patch for test_fsync to add tests for O_DIRECT.
Previous:From: Simon RiggsDate: 2011-01-14 18:09:11
Subject: Re: Re: [COMMITTERS] pgsql: Exit from base backups when shutdown is requested

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group