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:25 +0000 (21:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 27 May 2008 21:13:25 +0000 (21:13 +0000)
commit201da05ffe6652da5cb6e7c143e0b654ca12768c
treed8ec90a61fed2a1a5995dd6bf66e92f9eaf076bd
parent2e24cfdd83c8d56197c96343a06bd15c531424a1
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