CreateEventTrigStmt:
CREATE EVENT TRIGGER name ON ColLabel
- EXECUTE PROCEDURE func_name '(' ')'
+ EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')'
{
CreateEventTrigStmt *n = makeNode(CreateEventTrigStmt);
n->trigname = $4;
}
| CREATE EVENT TRIGGER name ON ColLabel
WHEN event_trigger_when_list
- EXECUTE PROCEDURE func_name '(' ')'
+ EXECUTE FUNCTION_or_PROCEDURE func_name '(' ')'
{
CreateEventTrigStmt *n = makeNode(CreateEventTrigStmt);
n->trigname = $4;
execute procedure test_event_trigger();
-- OK
create event trigger regress_event_trigger_end on ddl_command_end
- execute procedure test_event_trigger();
+ execute function test_event_trigger();
-- should fail, food is not a valid filter variable
create event trigger regress_event_trigger2 on ddl_command_start
when food in ('sandwich')
-- OK
create event trigger regress_event_trigger_end on ddl_command_end
- execute procedure test_event_trigger();
+ execute function test_event_trigger();
-- should fail, food is not a valid filter variable
create event trigger regress_event_trigger2 on ddl_command_start