]> git.ipfire.org Git - thirdparty/postgresql.git/commit
WAL must log CREATE and DROP DATABASE operations *without* using any
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2005 00:03:37 +0000 (00:03 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2005 00:03:37 +0000 (00:03 +0000)
commitcad86e253b6d6e08d2d59dc8b7206c11d0c21afb
treec76752115ec0fcf1976c28b2951f7b654e8d37a4
parentbd9b4a9d46600eeadbb8420d45a29b819c73bba7
WAL must log CREATE and DROP DATABASE operations *without* using any
explicit paths, so that the log can be replayed in a data directory
with a different absolute path than the original had.  To avoid forcing
initdb in the 8.0 branch, continue to accept the old WAL log record
types; they will never again be generated however, and the code can be
dropped after the next forced initdb.  Per report from Oleg Bartunov.
We still need to think about what it really means to WAL-log CREATE
TABLESPACE commands: we more or less have to put the absolute path
into those, but how to replay in a different context??
src/backend/commands/dbcommands.c
src/include/commands/dbcommands.h