PG-221: Use alternate of GetUserID function in error hook.

This commit is contained in:
Ibrar Ahmed
2021-08-31 14:55:53 +00:00
parent aee45ebe52
commit 3d3ece2f99
3 changed files with 23 additions and 18 deletions

View File

@@ -9,6 +9,6 @@ BEGIN
RAISE WARNING 'warning message';
END $$;
SELECT query, elevel, sqlcode, message FROM pg_stat_monitor ORDER BY query COLLATE "C";
SELECT query, elevel, sqlcode, message FROM pg_stat_monitor ORDER BY query COLLATE "C",elevel;
SELECT pg_stat_monitor_reset();
DROP EXTENSION pg_stat_monitor;