PG-558: Create test case to verify the function names and count in PGSM.

This commit is contained in:
Naeem Akhter
2022-12-12 15:41:09 +05:00
parent 5cd4f255d1
commit 1037fb08a8
3 changed files with 57 additions and 1 deletions

View 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;