Skip to content

Commit 73dc36f

Browse files
authored
Merge branch 'master' into master
2 parents 1e1e4e2 + b12c8ab commit 73dc36f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,18 @@ AS
255255
SELECT * FROM get_pg_stat_replication();
256256

257257
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;
258270
```
259271

260272
> **NOTE**

magefile.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ var platforms []Platform = []Platform{
9898
{"linux", "amd64", ""},
9999
{"linux", "386", ""},
100100
{"linux", "arm64", ""},
101+
{"linux", "mips64le", ""},
101102
{"darwin", "amd64", ""},
102103
{"darwin", "386", ""},
103104
{"windows", "amd64", ".exe"},

0 commit comments

Comments
 (0)