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

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

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