From: | Teodor Sigaev <teodor(at)sigaev(dot)ru> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Fix backup canceling |
Date: | 2017-03-24 10:55:45 |
Message-ID: | E1crMsj-0004DL-TT@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Fix backup canceling
Assert-enabled build crashes but without asserts it works by wrong way:
it may not reset forcing full page write and preventing from starting
exclusive backup with the same name as cancelled.
Patch replaces pair of booleans
nonexclusive_backup_running/exclusive_backup_running to single enum to
correctly describe backup state.
Backpatch to 9.6 where bug was introduced
Reported-by: David Steele
Authors: Michael Paquier, David Steele
Reviewed-by: Anastasia Lubennikova
https://commitfest.postgresql.org/13/1068/
Branch
------
REL9_6_STABLE
Details
-------
http://git.postgresql.org/pg/commitdiff/8de6278d3b7c810fe5d31486491189d88550a2a6
Modified Files
--------------
src/backend/access/transam/xlog.c | 22 ++++++++++++++++++++++
src/backend/access/transam/xlogfuncs.c | 25 ++++++++++---------------
src/include/access/xlog.h | 21 ++++++++++++++++++++-
3 files changed, 52 insertions(+), 16 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2017-03-24 11:34:49 | pgsql: Allow SCRAM authentication, when pg_hba.conf says 'md5'. |
Previous Message | Teodor Sigaev | 2017-03-24 10:54:01 | pgsql: Fix backup canceling |