]> granicus.if.org Git - postgresql/commit
Make DROP TABLE rollback-able: postpone physical file delete until commit.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2000 22:10:03 +0000 (22:10 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 8 Nov 2000 22:10:03 +0000 (22:10 +0000)
commit3908473c809d5c24940faebfabdad673f4302178
tree6a1989499ee61771c7764afd2b24d12ebd25b8fb
parentebe0b236909732c75d665c73363bd4ac7a7aa138
Make DROP TABLE rollback-able: postpone physical file delete until commit.
(WAL logging for this is not done yet, however.)  Clean up a number of really
crufty things that are no longer needed now that DROP behaves nicely.  Make
temp table mapper do the right things when drop or rename affecting a temp
table is rolled back.  Also, remove "relation modified while in use" error
check, in favor of locking tables at first reference and holding that lock
throughout the statement.
46 files changed:
src/backend/access/common/tupdesc.c
src/backend/access/gist/gist.c
src/backend/access/hash/hash.c
src/backend/access/heap/heapam.c
src/backend/access/nbtree/nbtree.c
src/backend/access/rtree/rtree.c
src/backend/access/transam/varsup.c
src/backend/access/transam/xact.c
src/backend/access/transam/xlogutils.c
src/backend/bootstrap/bootstrap.c
src/backend/catalog/heap.c
src/backend/catalog/index.c
src/backend/commands/cluster.c
src/backend/commands/command.c
src/backend/commands/comment.c
src/backend/commands/creatinh.c
src/backend/commands/indexcmds.c
src/backend/commands/rename.c
src/backend/commands/trigger.c
src/backend/executor/execAmi.c
src/backend/parser/analyze.c
src/backend/parser/gram.y
src/backend/parser/parse_clause.c
src/backend/parser/parse_relation.c
src/backend/rewrite/rewriteHandler.c
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/localbuf.c
src/backend/storage/buffer/xlog_bufmgr.c
src/backend/storage/lmgr/lock.c
src/backend/storage/smgr/md.c
src/backend/storage/smgr/mm.c
src/backend/storage/smgr/smgr.c
src/backend/utils/cache/inval.c
src/backend/utils/cache/relcache.c
src/backend/utils/cache/temprel.c
src/include/catalog/heap.h
src/include/catalog/index.h
src/include/parser/parse_clause.h
src/include/parser/parse_node.h
src/include/storage/buf_internals.h
src/include/storage/bufmgr.h
src/include/storage/smgr.h
src/include/utils/inval.h
src/include/utils/rel.h
src/include/utils/temprel.h
src/test/regress/expected/errors.out