File tree 2 files changed +17
-10
lines changed
contrib/pg_stat_statements
2 files changed +17
-10
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,17 @@ SELECT count(*) > 0 AS has_data FROM pg_stat_statements;
88
88
89
89
-- New functions and views for pg_stat_statements in 1.8
90
90
AlTER EXTENSION pg_stat_statements UPDATE TO '1.8';
91
+ SELECT pg_get_functiondef('pg_stat_statements_reset'::regproc);
92
+ pg_get_functiondef
93
+ --------------------------------------------------------------------------------------------------------------------------------
94
+ CREATE OR REPLACE FUNCTION public.pg_stat_statements_reset(userid oid DEFAULT 0, dbid oid DEFAULT 0, queryid bigint DEFAULT 0)+
95
+ RETURNS void +
96
+ LANGUAGE c +
97
+ PARALLEL SAFE STRICT +
98
+ AS '$libdir/pg_stat_statements', $function$pg_stat_statements_reset_1_7$function$ +
99
+
100
+ (1 row)
101
+
91
102
\d pg_stat_statements
92
103
View "public.pg_stat_statements"
93
104
Column | Type | Collation | Nullable | Default
@@ -125,15 +136,10 @@ AlTER EXTENSION pg_stat_statements UPDATE TO '1.8';
125
136
wal_fpi | bigint | | |
126
137
wal_bytes | numeric | | |
127
138
128
- SELECT pg_get_functiondef('pg_stat_statements_reset'::regproc);
129
- pg_get_functiondef
130
- --------------------------------------------------------------------------------------------------------------------------------
131
- CREATE OR REPLACE FUNCTION public.pg_stat_statements_reset(userid oid DEFAULT 0, dbid oid DEFAULT 0, queryid bigint DEFAULT 0)+
132
- RETURNS void +
133
- LANGUAGE c +
134
- PARALLEL SAFE STRICT +
135
- AS '$libdir/pg_stat_statements', $function$pg_stat_statements_reset_1_7$function$ +
136
-
139
+ SELECT count(*) > 0 AS has_data FROM pg_stat_statements;
140
+ has_data
141
+ ----------
142
+ t
137
143
(1 row)
138
144
139
145
-- New function pg_stat_statement_info, and new function
Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ SELECT count(*) > 0 AS has_data FROM pg_stat_statements;
33
33
34
34
-- New functions and views for pg_stat_statements in 1.8
35
35
AlTER EXTENSION pg_stat_statements UPDATE TO ' 1.8' ;
36
- \d pg_stat_statements
37
36
SELECT pg_get_functiondef(' pg_stat_statements_reset' ::regproc);
37
+ \d pg_stat_statements
38
+ SELECT count (* ) > 0 AS has_data FROM pg_stat_statements;
38
39
39
40
-- New function pg_stat_statement_info, and new function
40
41
-- and view for pg_stat_statements introduced in 1.9
You can’t perform that action at this time.
0 commit comments