]> granicus.if.org Git - postgresql/commit
WAL must log CREATE and DROP DATABASE operations *without* using any
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2005 00:04:25 +0000 (00:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 23 Mar 2005 00:04:25 +0000 (00:04 +0000)
commit5869e883eee9b9eee9422d400550a1a76ab08efd
tree1c20246f628f5add6ca452d994eb52c9d8539fbe
parent1cef5beeea8b39a84a161c16bac0af7ee1ed2df4
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