]> granicus.if.org Git - postgresql/commit
Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and REINDEX when the
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 May 2008 21:13:39 +0000 (21:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 May 2008 21:13:39 +0000 (21:13 +0000)
commit290d4b37ab98be20ebb79c658b7590b8982d7f01
tree51bfc4be1f2c6d83964898b2a523292b35ccb06b
parent48ecee132852b1631b9b6ec5d5fe9c0b9ab5ac98
Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and REINDEX when the
current transaction has any open references to the target relation or index
(implying it has an active query using the relation).  Also back-patch the
8.2 fix that prohibits TRUNCATE and CLUSTER when there are pending
AFTER-trigger events.  Per suggestion from Heikki.
src/backend/catalog/index.c
src/backend/commands/cluster.c
src/backend/commands/tablecmds.c
src/backend/commands/trigger.c
src/include/commands/tablecmds.h
src/include/commands/trigger.h