]> granicus.if.org Git - postgresql/commit
Add WAL logging for CREATE/DROP DATABASE and CREATE/DROP TABLESPACE.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Aug 2004 21:08:48 +0000 (21:08 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 29 Aug 2004 21:08:48 +0000 (21:08 +0000)
commit50742aed68b7a3a8d1a0c8ef8d970c97fc74dd9b
treec60891419eb5cb4e2c73296f973d91bba13f9e03
parentee66401f3176e32c884ce98c09c8383cfa453dbc
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.
doc/src/sgml/backup.sgml
src/backend/access/transam/rmgr.c
src/backend/commands/dbcommands.c
src/backend/commands/tablespace.c
src/include/access/rmgr.h
src/include/commands/dbcommands.h
src/include/commands/tablespace.h
src/include/port.h
src/port/path.c