mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
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.
This commit is contained in:
@ -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>
|
||||
@ -1119,6 +1119,18 @@ restore_command = 'copy /mnt/server/archivedir/%f "%p"' # Windows
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
<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
|
||||
|
Reference in New Issue
Block a user