Skip to content

Commit 196e3ad

Browse files
committed
test: output default event triggers
1 parent 21e8b06 commit 196e3ad

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

Diff for: nix/tests/expected/evtrigs.out

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
SELECT
2+
e.evtname,
3+
e.evtowner::regrole AS evtowner,
4+
e.evtfoid::regproc AS evtfunction,
5+
p.proowner::regrole AS function_owner
6+
FROM pg_event_trigger e
7+
JOIN pg_proc p
8+
ON e.evtfoid = p.oid
9+
WHERE p.prorettype = 'event_trigger'::regtype;
10+
evtname | evtowner | evtfunction | function_owner
11+
----------------------------------------+----------------+------------------------------------+----------------
12+
issue_pg_net_access | postgres | grant_pg_net_access | postgres
13+
issue_pg_graphql_access | supabase_admin | grant_pg_graphql_access | supabase_admin
14+
issue_graphql_placeholder | supabase_admin | set_graphql_placeholder | supabase_admin
15+
pgrst_ddl_watch | supabase_admin | pgrst_ddl_watch | supabase_admin
16+
pgrst_drop_watch | supabase_admin | pgrst_drop_watch | supabase_admin
17+
graphql_watch_ddl | supabase_admin | graphql.increment_schema_version | supabase_admin
18+
graphql_watch_drop | supabase_admin | graphql.increment_schema_version | supabase_admin
19+
issue_pg_cron_access | supabase_admin | grant_pg_cron_access | postgres
20+
pg_tle_event_trigger_for_drop_function | supabase_admin | pgtle.pg_tle_feature_info_sql_drop | supabase_admin
21+
pgaudit_ddl_command_end | supabase_admin | pgaudit_ddl_command_end | supabase_admin
22+
pgaudit_sql_drop | supabase_admin | pgaudit_sql_drop | supabase_admin
23+
pgsodium_trg_mask_update | supabase_admin | pgsodium.trg_mask_update | supabase_admin
24+
(12 rows)
25+

Diff for: nix/tests/sql/evtrigs.sql

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
SELECT
2+
e.evtname,
3+
e.evtowner::regrole AS evtowner,
4+
e.evtfoid::regproc AS evtfunction,
5+
p.proowner::regrole AS function_owner
6+
FROM pg_event_trigger e
7+
JOIN pg_proc p
8+
ON e.evtfoid = p.oid
9+
WHERE p.prorettype = 'event_trigger'::regtype;

0 commit comments

Comments
 (0)