Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit997b48e

Browse files
committed
Support multiple concurrent pg_basebackup backups.
With this patch, pg_basebackup doesn't write a backup_label file in thedata directory, so it doesn't interfere with a pg_start/stop_backup() basedbackup anymore. backup_label is still included in the backup, but it isinjected directly into the tar stream.Heikki Linnakangas, reviewed by Fujii Masao and Magnus Hagander.
1 parent48c9de8 commit997b48e

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 willtake
818-
care of the <function>pg_start_backup()</>, copy and
817+
the backup, instead of manually copying the files. This tool willdo
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)

[8]ページ先頭

©2009-2025 Movatter.jp