Commit 601e2935 authored by Robert Haas's avatar Robert Haas

Update comments and output for event_trigger regression test.

parent 52906f17
...@@ -16,6 +16,7 @@ ERROR: unrecognized event name "elephant_bootstrap" ...@@ -16,6 +16,7 @@ ERROR: unrecognized event name "elephant_bootstrap"
-- OK -- OK
create event trigger regress_event_trigger on ddl_command_start create event trigger regress_event_trigger on ddl_command_start
execute procedure test_event_trigger(); execute procedure test_event_trigger();
-- OK
create event trigger regress_event_trigger_end on ddl_command_end create event trigger regress_event_trigger_end on ddl_command_end
execute procedure test_event_trigger(); execute procedure test_event_trigger();
-- should fail, food is not a valid filter variable -- should fail, food is not a valid filter variable
...@@ -65,10 +66,12 @@ alter event trigger regress_event_trigger enable replica; ...@@ -65,10 +66,12 @@ alter event trigger regress_event_trigger enable replica;
alter event trigger regress_event_trigger enable always; alter event trigger regress_event_trigger enable always;
alter event trigger regress_event_trigger enable; alter event trigger regress_event_trigger enable;
alter event trigger regress_event_trigger disable; alter event trigger regress_event_trigger disable;
-- regress_event_trigger2 should fire, but not regress_event_trigger -- regress_event_trigger2 and regress_event_trigger_end should fire, but not
-- regress_event_trigger
create table event_trigger_fire1 (a int); create table event_trigger_fire1 (a int);
NOTICE: test_event_trigger: ddl_command_start CREATE TABLE
NOTICE: test_event_trigger: ddl_command_end CREATE TABLE NOTICE: test_event_trigger: ddl_command_end CREATE TABLE
-- but nothing should fire here -- regress_event_trigger_end should fire here
drop table event_trigger_fire1; drop table event_trigger_fire1;
NOTICE: test_event_trigger: ddl_command_end DROP TABLE NOTICE: test_event_trigger: ddl_command_end DROP TABLE
-- alter owner to non-superuser should fail -- alter owner to non-superuser should fail
......
...@@ -18,6 +18,7 @@ create event trigger regress_event_trigger on elephant_bootstrap ...@@ -18,6 +18,7 @@ create event trigger regress_event_trigger on elephant_bootstrap
create event trigger regress_event_trigger on ddl_command_start create event trigger regress_event_trigger on ddl_command_start
execute procedure test_event_trigger(); execute procedure test_event_trigger();
-- OK
create event trigger regress_event_trigger_end on ddl_command_end create event trigger regress_event_trigger_end on ddl_command_end
execute procedure test_event_trigger(); execute procedure test_event_trigger();
...@@ -70,10 +71,11 @@ alter event trigger regress_event_trigger enable always; ...@@ -70,10 +71,11 @@ alter event trigger regress_event_trigger enable always;
alter event trigger regress_event_trigger enable; alter event trigger regress_event_trigger enable;
alter event trigger regress_event_trigger disable; alter event trigger regress_event_trigger disable;
-- regress_event_trigger2 should fire, but not regress_event_trigger -- regress_event_trigger2 and regress_event_trigger_end should fire, but not
-- regress_event_trigger
create table event_trigger_fire1 (a int); create table event_trigger_fire1 (a int);
-- but nothing should fire here -- regress_event_trigger_end should fire here
drop table event_trigger_fire1; drop table event_trigger_fire1;
-- alter owner to non-superuser should fail -- alter owner to non-superuser should fail
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment