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

pgsql: Exit from base backups when shutdown is requested

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Exit from base backups when shutdown is requested
Date: 2011-01-14 11:37:22
Message-ID: E1Pdhy6-0007a6-NB@gemulon.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers
Exit from base backups when shutdown is requested

When the exit waits until the whole backup completes, it may take
a very long time.

In passing, add back an error check in the main loop so we detect
clients that disconnect much earlier if the backup is large.

Branch
------
master

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

Modified Files
--------------
src/backend/replication/basebackup.c |   14 +++++++++++++-
src/backend/replication/walsender.c  |   16 ++++++++--------
src/include/replication/walsender.h  |    2 ++
3 files changed, 23 insertions(+), 9 deletions(-)

Responses

pgsql-hackers by date

Next:From: Magnus HaganderDate: 2011-01-14 11:38:30
Subject: Re: Streaming base backups
Previous:From: Simon RiggsDate: 2011-01-14 11:15:50
Subject: Re: ALTER TABLE ... ADD FOREIGN KEY ... NOT ENFORCED

pgsql-committers by date

Next:From: Simon RiggsDate: 2011-01-14 12:10:01
Subject: Re: pgsql: Exit from base backups when shutdown is requested
Previous:From: Tom LaneDate: 2011-01-14 00:03:56
Subject: pgsql: Code review for postmaster.pid contents changes.

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