mirror of
https://github.com/postgres/postgres.git
synced 2025-08-30 06:01:21 +03:00
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
This commit is contained in:
@@ -186,11 +186,11 @@ PostgreSQL documentation
|
||||
the specified data directory. Three different
|
||||
shutdown methods can be selected with the <option>-m</option>
|
||||
option. <quote>Smart</quote> mode disallows new connections, then waits
|
||||
for all existing clients to disconnect and any online backup to finish.
|
||||
for all existing clients to disconnect.
|
||||
If the server is in hot standby, recovery and streaming replication
|
||||
will be terminated once all clients have disconnected.
|
||||
<quote>Fast</quote> mode (the default) does not wait for clients to disconnect and
|
||||
will terminate an online backup in progress. All active transactions are
|
||||
<quote>Fast</quote> mode (the default) does not wait for clients to disconnect.
|
||||
All active transactions are
|
||||
rolled back and clients are forcibly disconnected, then the
|
||||
server is shut down. <quote>Immediate</quote> mode will abort
|
||||
all server processes immediately, without a clean shutdown. This choice
|
||||
|
Reference in New Issue
Block a user