-
Notifications
You must be signed in to change notification settings - Fork 769
function pg_current_wal_lsn() not exists on 9.5.x #495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
thanks for your report. we could simply only query it in psql 10+ |
Hi @roidelapluie !
This query is marked as >=9.4.0 and contains pg_current_wal_lsn() which introduced only in Postgres 10.
|
Any progress on reviewing this PR? 👍 |
Think we can make it even better. |
this problem still exists in version 0.12.0, postgres 9.6 log from exporter
log from postgres
in version 0.10.0, the problem does not appear. |
Same problem over here. Same version of postgres and postgres-exporter. |
you're mistaken, this is a new code that appeared in version 0.12.0 |
https://github.com/prometheus-community/postgres_exporter/pull/747/files version <10 were forgotten... again :( |
It would appear that support for postgres < 10 was missed in that PR. Postgres 9 is not a version that we test against in our CI system. It's end of support so we don't go out of our way to test on it, but we don't intentionally break compatibility when we can avoid it. I think we could add that second query back to support < 10, but it would require some work to architect a maintainable system to handle different queries for different server versions. |
bug in new feature in 0.9.0
pg_replication_slots pq: function pg_current_wal_lsn() does not exist" source="postgres_exporter.go:1503"
pg_current_wal_lsn() function only exists from 10 version.
There should be a bool to switch of this new feature
The text was updated successfully, but these errors were encountered: