pgsql: Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and

Started by Tom Laneabout 18 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Log Message:
-----------
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.

Tags:
----
REL8_1_STABLE

Modified Files:
--------------
pgsql/src/backend/catalog:
index.c (r1.261.2.4 -> r1.261.2.5)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/index.c?r1=1.261.2.4&r2=1.261.2.5)
pgsql/src/backend/commands:
cluster.c (r1.141.2.2 -> r1.141.2.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/cluster.c?r1=1.141.2.2&r2=1.141.2.3)
tablecmds.c (r1.174.2.6 -> r1.174.2.7)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.174.2.6&r2=1.174.2.7)
trigger.c (r1.195.2.4 -> r1.195.2.5)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/trigger.c?r1=1.195.2.4&r2=1.195.2.5)
pgsql/src/include/commands:
tablecmds.h (r1.24 -> r1.24.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/commands/tablecmds.h?r1=1.24&r2=1.24.2.1)
trigger.h (r1.56 -> r1.56.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/commands/trigger.h?r1=1.56&r2=1.56.2.1)