-
Notifications
You must be signed in to change notification settings - Fork 31
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
Nr 280084 add support for postgre sql v17 #176
Nr 280084 add support for postgre sql v17 #176
Conversation
The values These inventory variables are no longer present in Postgres 17 as per the release docs: https://www.postgresql.org/docs/current/release-17.html
From the commit removing the corresponding metrics:
I wonder if we could find some equivalent values in the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for taking care of this and great job so far!
I'd check if we can get the missing metrics and when that's ready we can sync to update the changelog and prepare the release. In the meantime, find some comments/suggestions below (merely nits).
Added a query to get All metrics that were reported before postgres v17 are also reported for postgres v17. Note : Metrics variable names are changed to reflect the table they come from. So: |
The metrics names change matches the changes in the latest version of PostgreSQL which makes perfect sense. However it is also a breaking change since anything relying on the previous names will stop working for PostgreSQL 17. We can either:
|
8ee389b
to
5a71164
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes LGTM, well done!
There are two small things to take care of:
- I've left a nit comment regarding the new test.
- We need to update the CHANGELOG in order that the pre-release and release are automaticall triggered. You'll find more information regarding the changelog in the release-toolkit and coreint-automation repositories. There are also examples in previous PRs. Ping me if you need more context 🙂
Simplified version specific tests
…nto NR-280084-Add-support-for-PostgreSQL-v17
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
Postgres 17 introduced a new table
pg_stat_checkpointer
Metrics originally being collected from
pg_stat_bgwriter
were moved topg_stat_checkpointer
Queries were modified to collect the metrics from the new table.
Two metrics
buffers_backend
andbuffers_backend_fsync
were dropped in Postgres 17. (https://pgpedia.info/p/pg_stat_bgwriter.html) and are no longer available.The schema and inventory JSONs for the integration tests were modified to reflect the new metric names and modified inventory variables.
Instance definitions were version dependent. A new way to manage version dependence was created in order to future proof.