]> granicus.if.org Git - postgresql/commit
Allow DROP TABLESPACE to succeed (with a warning) if the pg_tblspc symlink
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Mar 2007 19:51:44 +0000 (19:51 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Mar 2007 19:51:44 +0000 (19:51 +0000)
commita4127b713de3a655a0136bf53adceebf7b83d319
treee145d2801b883735c1f4929230e57dfe4456530b
parent832b6d00e9b7608ce21aff68abda50c400c5c7d6
Allow DROP TABLESPACE to succeed (with a warning) if the pg_tblspc symlink
doesn't exist.  This allows DROP to be used to clean out the pg_tablespace
catalog entry in a situation where a previous DROP attempt failed before
committing but after having removed the directories and symlink.

Per report from William Garrison.  Even though his test case depends on an
unrelated bug in PreventTransactionChain, it's certainly possible for this
situation to arise due to other problems, eg a system crash at just the
right time.
src/backend/commands/tablespace.c