]> granicus.if.org Git - postgresql/commit
Add some code to CREATE DATABASE to check for pre-existing subdirectories
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Oct 2006 22:44:12 +0000 (22:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 18 Oct 2006 22:44:12 +0000 (22:44 +0000)
commit1e758d5263e54a5d79ef368473e7e70d009944de
tree676c78bf6f5a69526e1990fb42c09a80e542ba69
parent877f08da14719a1bead6154785ab45714d347998
Add some code to CREATE DATABASE to check for pre-existing subdirectories
that conflict with the OID that we want to use for the new database.
This avoids the risk of trying to remove files that maybe we shouldn't
remove.  Per gripe from Jon Lapham and subsequent discussion of 27-Sep.
src/backend/access/transam/xlog.c
src/backend/commands/dbcommands.c