Slightly correct context check for event triggers

Peter Eisentraut <peter_e@gmx.net>

Commit: f82d4d666ff501382b92dfd80eaf1d459e6e84a3
Author: Peter Eisentraut <peter_e@gmx.net>
Date: 2018-10-10T20:41:12Z
Releases: 12.0
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

Files

PathChange+/−
src/backend/tcop/utility.c modified +1 −1

Discussion