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

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

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