mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
PG-558: Create test case to verify the function names and count in PGSM.
This commit is contained in:
15
regression/sql/functions.sql
Normal file
15
regression/sql/functions.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE USER su WITH SUPERUSER;
|
||||
SET ROLE su;
|
||||
|
||||
CREATE EXTENSION pg_stat_monitor;
|
||||
CREATE USER u1;
|
||||
|
||||
SELECT pg_stat_monitor_reset();
|
||||
SELECT routine_schema, routine_name, routine_type, data_type FROM information_schema.routines WHERE routine_schema = 'public' ORDER BY routine_name COLLATE "C";
|
||||
|
||||
SET ROLE u1;
|
||||
SELECT routine_schema, routine_name, routine_type, data_type FROM information_schema.routines WHERE routine_schema = 'public' ORDER BY routine_name COLLATE "C";
|
||||
|
||||
set role su;
|
||||
DROP USER u1;
|
||||
DROP EXTENSION pg_stat_monitor;
|
||||
Reference in New Issue
Block a user