Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and REINDEX when the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: bda5491729621940b2a70d39d0aa87442527a350
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-05-27T21:13:50Z
Releases: 8.0.16
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.

Files