git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 14d3f24) | patch
Remove exclusive backup mode
Wed, 6 Apr 2022 18:41:03 +0000 (14:41 -0400)
Wed, 6 Apr 2022 18:41:03 +0000 (14:41 -0400)
commit 39969e2a1e4d7f5a37f3ef37d53bbfe171e7d77a
Remove exclusive backup mode

Exclusive-mode backups have been deprecated since 9.6 (when
non-exclusive backups were introduced) due to the issues
they can cause should the system crash while one is running and
generally because non-exclusive provides a much better interface.
Further, exclusive backup mode wasn't really being tested (nor was most
of the related code- like being able to log in just to stop an exclusive
backup and the bits of the state machine related to that) and having to
possibly deal with an exclusive backup and the backup_label file
existing during pg_basebackup, pg_rewind, etc, added other complexities
that we are better off without.

This patch removes the exclusive backup mode, the various special cases
for dealing with it, and greatly simplifies the online backup code and
documentation.

Authors: David Steele, Nathan Bossart
Reviewed-by: Chapman Flack
Discussion: https://postgr.es/m/ac7339ca-3718-3c93-929f-99e725d1172c@pgmasters.net
https://postgr.es/m/CAHg+QDfiM+WU61tF6=nPZocMZvHDzCK47Kneyb0ZRULYzV5sKQ@mail.gmail.com
24 files changed:
doc/src/sgml/backup.sgml diff | blob | blame | history
doc/src/sgml/func.sgml diff | blob | blame | history
doc/src/sgml/high-availability.sgml diff | blob | blame | history
doc/src/sgml/monitoring.sgml diff | blob | blame | history
doc/src/sgml/ref/pg_ctl-ref.sgml diff | blob | blame | history
doc/src/sgml/ref/pgupgrade.sgml diff | blob | blame | history
doc/src/sgml/runtime.sgml diff | blob | blame | history
src/backend/access/transam/xlog.c diff | blob | blame | history
src/backend/access/transam/xlogfuncs.c diff | blob | blame | history
src/backend/access/transam/xlogrecovery.c diff | blob | blame | history
src/backend/catalog/system_functions.sql diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/backend/replication/basebackup.c diff | blob | blame | history
src/backend/utils/init/postinit.c diff | blob | blame | history
src/bin/pg_basebackup/t/010_pg_basebackup.pl diff | blob | blame | history
src/bin/pg_ctl/pg_ctl.c diff | blob | blame | history
src/bin/pg_rewind/filemap.c diff | blob | blame | history
src/include/access/xlog.h diff | blob | blame | history
src/include/catalog/pg_control.h diff | blob | blame | history
src/include/catalog/pg_proc.dat diff | blob | blame | history
src/include/libpq/libpq-be.h diff | blob | blame | history
src/include/miscadmin.h diff | blob | blame | history
src/test/perl/PostgreSQL/Test/Cluster.pm diff | blob | blame | history
src/test/recovery/t/010_logical_decoding_timelines.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /