Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
601e2935
Commit
601e2935
authored
Jan 23, 2013
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update comments and output for event_trigger regression test.
parent
52906f17
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/test/regress/expected/event_trigger.out
src/test/regress/expected/event_trigger.out
+5
-2
src/test/regress/sql/event_trigger.sql
src/test/regress/sql/event_trigger.sql
+4
-2
No files found.
src/test/regress/expected/event_trigger.out
View file @
601e2935
...
...
@@ -16,6 +16,7 @@ ERROR: unrecognized event name "elephant_bootstrap"
-- OK
create event trigger regress_event_trigger on ddl_command_start
execute procedure test_event_trigger();
-- OK
create event trigger regress_event_trigger_end on ddl_command_end
execute procedure test_event_trigger();
-- should fail, food is not a valid filter variable
...
...
@@ -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;
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);
NOTICE: test_event_trigger: ddl_command_start 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;
NOTICE: test_event_trigger: ddl_command_end DROP TABLE
-- alter owner to non-superuser should fail
...
...
src/test/regress/sql/event_trigger.sql
View file @
601e2935
...
...
@@ -18,6 +18,7 @@ create event trigger regress_event_trigger on elephant_bootstrap
create
event
trigger
regress_event_trigger
on
ddl_command_start
execute
procedure
test_event_trigger
();
-- OK
create
event
trigger
regress_event_trigger_end
on
ddl_command_end
execute
procedure
test_event_trigger
();
...
...
@@ -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
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
);
--
but nothing
should fire here
--
regress_event_trigger_end
should fire here
drop
table
event_trigger_fire1
;
-- alter owner to non-superuser should fail
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment