aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-06-25 22:47:29 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-06-25 22:47:29 +0000
commitfbcbc5d06f53aea412130deb52e216aa3883fb8d (patch)
tree3c3fde8c9ab650b7db44ccdc1bc7fad0986c8126 /doc/src
parent3acca18d2869282890c180d176259d5e5fcbdd62 (diff)
downloadpostgresql-fbcbc5d06f53aea412130deb52e216aa3883fb8d.tar.gz
postgresql-fbcbc5d06f53aea412130deb52e216aa3883fb8d.zip
Force a checkpoint before committing a CREATE DATABASE command. This
should fix the recent reports of "index is not a btree" failures, as well as preventing a more obscure race condition involving changes to a template database just after copying it with CREATE DATABASE.
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/backup.sgml14
1 files changed, 13 insertions, 1 deletions
diff --git a/doc/src/sgml/backup.sgml b/doc/src/sgml/backup.sgml
index ba55eb634ae..01cdae83d69 100644
--- a/doc/src/sgml/backup.sgml
+++ b/doc/src/sgml/backup.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.68 2005/06/21 20:45:43 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.69 2005/06/25 22:47:28 tgl Exp $
-->
<chapter id="backup">
<title>Backup and Restore</title>
@@ -1121,6 +1121,18 @@ restore_command = 'copy /mnt/server/archivedir/%f "%p"' # Windows
<listitem>
<para>
+ If a <command>CREATE DATABASE</> command is executed while a base
+ backup is being taken, and then the template database that the
+ <command>CREATE DATABASE</> copied is modified while the base backup
+ is still in progress, it is possible that recovery will cause those
+ modifications to be propagated into the created database as well.
+ This is of course undesirable. To avoid this risk, it is best not to
+ modify any template databases while taking a base backup.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
<command>CREATE TABLESPACE</> commands are WAL-logged with the literal
absolute path, and will therefore be replayed as tablespace creations
with the same absolute path. This might be undesirable if the log is