mirror of
https://github.com/postgres/postgres.git
synced 2025-06-22 02:52:08 +03:00
Add WAL logging for CREATE/DROP DATABASE and CREATE/DROP TABLESPACE.
Fix TablespaceCreateDbspace() to be able to create a dummy directory in place of a dropped tablespace's symlink. This eliminates the open problem of a PANIC during WAL replay when a replayed action attempts to touch a file in a since-deleted tablespace. It also makes for a significant improvement in the usability of PITR replay.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
<!--
|
||||
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.46 2004/08/08 04:34:43 tgl Exp $
|
||||
$PostgreSQL: pgsql/doc/src/sgml/backup.sgml,v 2.47 2004/08/29 21:08:47 tgl Exp $
|
||||
-->
|
||||
<chapter id="backup">
|
||||
<title>Backup and Restore</title>
|
||||
@ -902,17 +902,9 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
|
||||
|
||||
<para>
|
||||
At this writing, there are several limitations of the on-line backup
|
||||
technique. These will probably be fixed in future releases.
|
||||
technique. These will probably be fixed in future releases:
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
The effects of <command>CREATE DATABASE</>, <command>DROP DATABASE</>,
|
||||
<command>CREATE TABLESPACE</>, and <command>DROP TABLESPACE</> are
|
||||
not fully reflected in the WAL log. It is recommended that you take
|
||||
a new base backup after performing one of these operations.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Operations on non-btree indexes (hash, R-tree, and GiST indexes) are
|
||||
@ -932,7 +924,7 @@ restore_command = 'cp /mnt/server/archivedir/%f %p'
|
||||
since we may need to fix partially-written disk pages. It is not
|
||||
necessary to store so many page copies for PITR operations, however.
|
||||
An area for future development is to compress archived WAL data by
|
||||
removing unnecesssary page copies.
|
||||
removing unnecessary page copies.
|
||||
</para>
|
||||
</sect2>
|
||||
</sect1>
|
||||
|
Reference in New Issue
Block a user