mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 14:06:20 +00:00
PG-176 : Extract fully qualified relations name.
This commit is contained in:
6
sql/guc.sql
Normal file
6
sql/guc.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
CREATE EXTENSION pg_stat_monitor;
|
||||
SELECT pg_stat_monitor_reset();
|
||||
select pg_sleep(.5);
|
||||
SELECT * FROM pg_stat_monitor_settings;
|
||||
SELECT pg_stat_monitor_reset();
|
||||
DROP EXTENSION pg_stat_monitor;
|
||||
14
sql/relations.sql
Normal file
14
sql/relations.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE EXTENSION pg_stat_monitor;
|
||||
SELECT pg_stat_monitor_reset();
|
||||
CREATE TABLE foo1(a int);
|
||||
CREATE TABLE foo2(a int);
|
||||
CREATE TABLE foo3(a int);
|
||||
CREATE TABLE foo4(a int);
|
||||
SELECT * FROM foo1, foo2, foo3, foo4;
|
||||
SELECT query, relations from pg_stat_monitor;
|
||||
DROP TABLE foo1;
|
||||
DROP TABLE foo2;
|
||||
DROP TABLE foo3;
|
||||
DROP TABLE foo4;
|
||||
SELECT pg_stat_monitor_reset();
|
||||
DROP EXTENSION pg_stat_monitor;
|
||||
Reference in New Issue
Block a user