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

Commit5525e6c

Browse files
committed
Fix unsafe event-trigger coding in ProcessUtility().
We mustn't run any of the event-trigger support code when handlingutility statements like START TRANSACTION or ABORT, because that codemay need to refresh event-trigger cache data, which requires beinginside a valid transaction. (This mistake explains the consistentbuild failures exhibited by the CLOBBER_CACHE_ALWAYS buildfarm members,as well as some irreproducible failures on other members.)The least messy fix seems to be to break standard_ProcessUtility into twofunctions, one that handles all the statements not supported by eventtriggers, and one that contains the event-trigger support code and handlesthe statements that are supported by event triggers.This change also fixes several inconsistencies, such as four cases wheresupport had been installed for "ddl_event_start" but not "ddl_event_end"triggers, plus the fact that InvokeDDLCommandEventTriggersIfSupported()paid no mind to isCompleteQuery.Dimitri Fontaine and Tom Lane
1 parentbbb4db4 commit5525e6c

File tree

1 file changed

+569
-626
lines changed

1 file changed

+569
-626
lines changed

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp