File tree 2 files changed +23
-0
lines changed
2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,25 @@ WITH t as (SELECT sum(0) FROM pg_wait_sampling_profile)
20
20
0
21
21
(1 row)
22
22
23
+ -- Some dummy checks just to be sure that all our functions work and return something.
24
+ SELECT count(*) = 1 as test FROM pg_wait_sampling_get_current(pg_backend_pid());
25
+ test
26
+ ------
27
+ t
28
+ (1 row)
29
+
30
+ SELECT count(*) > 5 as test FROM pg_wait_sampling_get_profile();
31
+ test
32
+ ------
33
+ t
34
+ (1 row)
35
+
36
+ SELECT count(*) > 100 as test FROM pg_wait_sampling_get_history();
37
+ test
38
+ ------
39
+ t
40
+ (1 row)
41
+
23
42
SELECT pg_wait_sampling_reset_profile();
24
43
pg_wait_sampling_reset_profile
25
44
--------------------------------
Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ WITH t as (SELECT sum(0) FROM pg_wait_sampling_history)
9
9
WITH t as (SELECT sum (0 ) FROM pg_wait_sampling_profile)
10
10
SELECT sum (0 ) FROM generate_series(1 , 2 ), t;
11
11
12
+ -- Some dummy checks just to be sure that all our functions work and return something.
13
+ SELECT count (* ) = 1 as test FROM pg_wait_sampling_get_current(pg_backend_pid());
14
+ SELECT count (* ) > 5 as test FROM pg_wait_sampling_get_profile();
15
+ SELECT count (* ) > 100 as test FROM pg_wait_sampling_get_history();
12
16
SELECT pg_wait_sampling_reset_profile();
13
17
14
18
DROP EXTENSION pg_wait_sampling;
You can’t perform that action at this time.
0 commit comments