You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-11-23 23:02:58 +03:00
Fix an extraneous comma which bugged the SQL introduced when merging PR #78
See commit 0de0311c22. The SQL for <9.2 had a
typo which we somehow missed, caught by integration testing.
This commit is contained in:
@@ -304,7 +304,7 @@ var queryOverrides = map[string][]OverrideQuery{
|
|||||||
semver.MustParseRange("<9.2.0"),
|
semver.MustParseRange("<9.2.0"),
|
||||||
`
|
`
|
||||||
SELECT *,
|
SELECT *,
|
||||||
(case pg_is_in_recovery() when 't' then null else pg_current_xlog_location() end) AS pg_current_xlog_location,
|
(case pg_is_in_recovery() when 't' then null else pg_current_xlog_location() end) AS pg_current_xlog_location
|
||||||
FROM pg_stat_replication
|
FROM pg_stat_replication
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user