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

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and
Date: 2008-05-27 21:13:26
Message-ID: 20080527211326.0CB96754C54@cvs.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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_2_STABLE

Modified Files:
--------------
pgsql/src/backend/catalog:
index.c (r1.274.2.2 -> r1.274.2.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/catalog/index.c?r1=1.274.2.2&r2=1.274.2.3)
pgsql/src/backend/commands:
cluster.c (r1.154.2.2 -> r1.154.2.3)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/cluster.c?r1=1.154.2.2&r2=1.154.2.3)
tablecmds.c (r1.206.2.5 -> r1.206.2.6)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/tablecmds.c?r1=1.206.2.5&r2=1.206.2.6)
trigger.c (r1.210.2.4 -> r1.210.2.5)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/trigger.c?r1=1.210.2.4&r2=1.210.2.5)
pgsql/src/include/commands:
tablecmds.h (r1.31.2.1 -> r1.31.2.2)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/commands/tablecmds.h?r1=1.31.2.1&r2=1.31.2.2)
trigger.h (r1.59 -> r1.59.2.1)
(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/commands/trigger.h?r1=1.59&r2=1.59.2.1)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2008-05-27 21:13:39 pgsql: Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and
Previous Message User Gleu 2008-05-27 21:11:42 pgsnap - pgsnap: Fixes PHP notice messages.