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

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and
Date
Msg-id 20080527211326.0CB96754C54@cvs.postgresql.org
Whole thread Raw
List 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)

pgsql-committers by date:

Previous
From: gleu@pgfoundry.org (User Gleu)
Date:
Subject: pgsnap - pgsnap: Fixes PHP notice messages.
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Back-patch the 8.3 fix that prohibits TRUNCATE, CLUSTER, and