WAL must log CREATE and DROP DATABASE operations *without* using any

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5869e883eee9b9eee9422d400550a1a76ab08efd
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2005-03-23T00:04:25Z
Releases: 8.0.2
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??

Files

PathChange+/−
src/backend/commands/dbcommands.c modified +112 −26
src/include/commands/dbcommands.h modified +30 −5