aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2014-04-14 13:00:04 -0400
committerRobert Haas <rhaas@postgresql.org>2014-04-14 13:01:53 -0400
commit69671ab548459814d489315bf5cd421f84e984a4 (patch)
treeb68bc31d8c279ee3409d840c339234f63ad30e06 /doc/src
parentc050b2aae3b2f745ef61b379087cf9a67deea293 (diff)
downloadpostgresql-69671ab548459814d489315bf5cd421f84e984a4.tar.gz
postgresql-69671ab548459814d489315bf5cd421f84e984a4.zip
doc: Suggesting clearing pg_replslot from a hot filesystem backup.
Maybe we'll settle on another way of solving this problem, but for now this is the recommended procedure. Per discussion with Michael Paquier.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/backup.sgml15
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index 854b5fde41c..06f064e1a6f 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -944,6 +944,21 @@ SELECT pg_stop_backup();
</para>
<para>
+ It is often a good idea to also omit from the backup dump the files
+ within the cluster's <filename>pg_replslot/</> directory, so that
+ replication slots that exist on the master do not become part of the
+ backup. Otherwise, the subsequent use of the backup to create a standby
+ may result in indefinite retention of WAL files on the standby, and
+ possibly bloat on the master if hot standby feedback is enabled, because
+ the clients that are using those replication slots will still be connecting
+ to and updating the slots on the master, not the standby. Even if the
+ backup is only intended for use in creating a new master, copying the
+ replication slots isn't expected to be particularly useful, since the
+ contents of those slots will likely be badly out of date by the time
+ the new master comes on line.
+ </para>
+
+ <para>
It's also worth noting that the <function>pg_start_backup</> function
makes a file named <filename>backup_label</> in the database cluster
directory, which is removed by <function>pg_stop_backup</>.