]> granicus.if.org Git - postgresql/commit
Slightly correct context check for event triggers
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 5 Oct 2018 13:20:32 +0000 (15:20 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Wed, 10 Oct 2018 20:41:12 +0000 (22:41 +0200)
commitf82d4d666ff501382b92dfd80eaf1d459e6e84a3
treee20beec724e32cfcfa87cda4f5ee8131f5dc1ee8
parentae307861d89767991b71e97faa6e1812e5ab83f9
Slightly correct context check for event triggers

The previous check for a "complete query" omitted the new
PROCESS_UTILITY_QUERY_NONATOMIC value.  This didn't actually make a
difference in practice, because only CALL and SET from PL/pgSQL run in
this state, but it's more correct to include it anyway.

Discussion: https://www.postgresql.org/message-id/4566041d-2567-74d2-d135-19ff6a20fe51%402ndquadrant.com
src/backend/tcop/utility.c