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

Commit7e49330

Browse files
committed
Correct mistaken claims about EXPLAIN ANALYZE's handling of triggers.
Time spent executing AFTER triggers is not included in the runtime of theassociated ModifyTable node; in my patch of yesterday I confused queuing ofthese triggers with their actual execution. Spotted by Marko Tiikkaja.
1 parent4c966d9 commit7e49330

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎doc/src/sgml/perform.sgml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,10 +436,13 @@ WHERE t1.unique1 < 100 AND t1.unique2 = t2.unique2;
436436
applying the table changes is charged to a top-level Insert, Update,
437437
or Delete plan node. (The plan nodes underneath this node represent
438438
the work of locating the old rows and/or computing the new ones.)
439-
Time spent firing triggers, if any, is charged to the Insert,
440-
Update, or Delete node, and is also shown separately for each trigger.
441-
Note, however, that deferred triggers will not be fired until end of
442-
transaction and are thus not accounted for in the output of
439+
Time spent executing <literal>BEFORE</> triggers, if any, is charged to
440+
the related Insert, Update, or Delete node, although time spent executing
441+
<literal>AFTER</> triggers is not. The time spent in each trigger
442+
(either <literal>BEFORE</> or <literal>AFTER</>) is also shown separately
443+
and is included in total runtime.
444+
Note, however, that deferred constraint triggers will not be executed
445+
until end of transaction and are thus not shown by
443446
<command>EXPLAIN ANALYZE</command>.
444447
</para>
445448

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp