File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 255
255
SELECT * FROM get_pg_stat_replication();
256
256
257
257
GRANT SELECT ON postgres_exporter .pg_stat_replication TO postgres_exporter;
258
+
259
+ CREATE OR REPLACE FUNCTION get_pg_stat_statements () RETURNS SETOF pg_stat_statements AS
260
+ $$ SELECT * FROM public .pg_stat_statements ; $$
261
+ LANGUAGE sql
262
+ VOLATILE
263
+ SECURITY DEFINER;
264
+
265
+ CREATE OR REPLACE VIEW postgres_exporter .pg_stat_statements
266
+ AS
267
+ SELECT * FROM get_pg_stat_statements();
268
+
269
+ GRANT SELECT ON postgres_exporter .pg_stat_statements TO postgres_exporter;
258
270
```
259
271
260
272
> ** NOTE**
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ var platforms []Platform = []Platform{
98
98
{"linux" , "amd64" , "" },
99
99
{"linux" , "386" , "" },
100
100
{"linux" , "arm64" , "" },
101
+ {"linux" , "mips64le" , "" },
101
102
{"darwin" , "amd64" , "" },
102
103
{"darwin" , "386" , "" },
103
104
{"windows" , "amd64" , ".exe" },
You can’t perform that action at this time.
0 commit comments