Skip to content

Commit 997b48e

Browse files
committed
Support multiple concurrent pg_basebackup backups.
With this patch, pg_basebackup doesn't write a backup_label file in the data directory, so it doesn't interfere with a pg_start/stop_backup() based backup anymore. backup_label is still included in the backup, but it is injected directly into the tar stream. Heikki Linnakangas, reviewed by Fujii Masao and Magnus Hagander.
1 parent 48c9de8 commit 997b48e

File tree

5 files changed

+295
-113
lines changed

5 files changed

+295
-113
lines changed

doc/src/sgml/backup.sgml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,12 +814,13 @@ SELECT pg_stop_backup();
814814

815815
<para>
816816
You can also use the <xref linkend="app-pgbasebackup"> tool to take
817-
the backup, instead of manually copying the files. This tool will take
818-
care of the <function>pg_start_backup()</>, copy and
817+
the backup, instead of manually copying the files. This tool will do
818+
the equivalent of <function>pg_start_backup()</>, copy and
819819
<function>pg_stop_backup()</> steps automatically, and transfers the
820820
backup over a regular <productname>PostgreSQL</productname> connection
821821
using the replication protocol, instead of requiring filesystem level
822-
access.
822+
access. pg_basebackup does not interfere with filesystem level backups
823+
taken using <function>pg_start_backup()</>/<function>pg_stop_backup()</>.
823824
</para>
824825

825826
<para>

doc/src/sgml/ref/pg_basebackup.sgml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ PostgreSQL documentation
5959
</para>
6060

6161
<para>
62-
Only one backup can be concurrently active in
63-
<productname>PostgreSQL</productname>, meaning that only one instance of
64-
<application>pg_basebackup</application> can run at the same time
65-
against a single database cluster.
62+
There can be multiple pg_basebackups running at the same time, but it is
63+
better from a performance point of view to take only one backup, and copy
64+
the the result.
6665
</para>
6766
</refsect1>
6867

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy