Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita20e49b

Browse files
committed
Avoid using IsTransactionBlock() in DeferredTriggerSetState(); no real
need for this optimization, and it's too easily fooled anyway.
1 parente16f04c commita20e49b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

‎src/backend/commands/trigger.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.135 2002/10/14 16:51:29 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.136 2002/10/21 19:55:49 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1991,11 +1991,9 @@ DeferredTriggerSetState(ConstraintsSetStmt *stmt)
19911991
List*l;
19921992

19931993
/*
1994-
* If called outside a transaction block, we can safely return: this
1995-
* command cannot effect any subsequent transactions, and there are no
1996-
* "session-level" trigger settings.
1994+
* Ignore call if we aren't in a transaction.
19971995
*/
1998-
if (!IsTransactionBlock())
1996+
if (deftrig_cxt==NULL)
19991997
return;
20001998

20011999
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp