diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-27 21:13:25 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2008-05-27 21:13:25 +0000 |
commit | 35b6007efee916e5b4dfbd4e98fcbef9b8259355 (patch) | |
tree | 05247dca739821d8564eb064a10228e792be0cd7 /src/include/commands/trigger.h | |
parent | 8eecf95d415b8b73ae05e7221c00388d1abe2d27 (diff) | |
download | postgresql-35b6007efee916e5b4dfbd4e98fcbef9b8259355.tar.gz postgresql-35b6007efee916e5b4dfbd4e98fcbef9b8259355.zip |
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.
Diffstat (limited to 'src/include/commands/trigger.h')
-rw-r--r-- | src/include/commands/trigger.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/commands/trigger.h b/src/include/commands/trigger.h index 31253d8b4fe..d88f5848854 100644 --- a/src/include/commands/trigger.h +++ b/src/include/commands/trigger.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/commands/trigger.h,v 1.59 2006/09/04 21:15:56 tgl Exp $ + * $PostgreSQL: pgsql/src/include/commands/trigger.h,v 1.59.2.1 2008/05/27 21:13:25 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -165,7 +165,7 @@ extern void AfterTriggerEndXact(bool isCommit); extern void AfterTriggerBeginSubXact(void); extern void AfterTriggerEndSubXact(bool isCommit); extern void AfterTriggerSetState(ConstraintsSetStmt *stmt); -extern void AfterTriggerCheckTruncate(List *relids); +extern bool AfterTriggerPendingOnRel(Oid relid); /* |