-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9de79b
commit beca034
Showing
7 changed files
with
777 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
CREATE EXTENSION pg_stat_monitor; | ||
SELECT pg_stat_monitor_reset(); | ||
pg_stat_monitor_reset | ||
----------------------- | ||
|
||
(1 row) | ||
|
||
select pg_sleep(.5); | ||
pg_sleep | ||
---------- | ||
|
||
(1 row) | ||
|
||
SELECT 1; | ||
?column? | ||
---------- | ||
1 | ||
(1 row) | ||
|
||
SELECT bucket, query FROM pg_stat_monitor ORDER BY query; | ||
bucket | query | ||
--------+-------------------------------- | ||
1 | SELECT $1 | ||
1 | SELECT pg_stat_monitor_reset() | ||
1 | select pg_sleep($1) | ||
(3 rows) | ||
|
||
SELECT pg_stat_monitor_reset(); | ||
pg_stat_monitor_reset | ||
----------------------- | ||
|
||
(1 row) | ||
|
||
DROP EXTENSION pg_stat_monitor; |
Oops, something went wrong.