PG-188: Added a new column to monitor the query state.

Added missing test case files.
This commit is contained in:
Ibrar Ahmed
2021-03-21 00:17:17 +05:00
parent f8ed33a92a
commit 334389c76e
2 changed files with 39 additions and 0 deletions

8
regression/sql/state.sql Normal file
View File

@@ -0,0 +1,8 @@
CREATE EXTENSION pg_stat_monitor;
SELECT pg_stat_monitor_reset();
SELECT 1;
SELECT 1/0; -- divide by zero
SELECT query, state_code, state FROM pg_stat_monitor ORDER BY query COLLATE "C";
SELECT pg_stat_monitor_reset();
DROP EXTENSION pg_stat_monitor;