Skip to content

Conversation

@tasaba
Copy link

@tasaba tasaba commented Nov 12, 2024

This pull request introduces several enhancements to support PostgreSQL 17 in pg_statsinfo.
The key changes include:

Improved Backend Identification: Replaced MyBackendId with MyProcNumber for more accurate backend identification in PostgreSQL 17.

Removal of Obsolete Field: Removed the tuplestore_donestoring field, which is no longer relevant in PostgreSQL 17.

Refined Background Writer Metrics: Removed the buffers_backend and buffers_backend_fsync fields from pg_stat_bgwriter to reflect changes in PostgreSQL 17's background writer.

Updated Shared Block I/O Metrics: Renamed the blk_{read|write}time columns in pg_stat_statements to shared_blk{read|write}_time to align with the updated metrics in PostgreSQL 17.

Adjusted Default Value: Changed the default value of the attstattarget column in pg_attribute from -1 to NULL to match the PostgreSQL 17 behavior.

Enhanced Testing: Added test cases to ensure compatibility with the pg_maintain role.

This update ensures full compatibility with PostgreSQL 17 and improves the accuracy and relevance of the collected statistics. All changes have been thoroughly tested.
Please review the changes and let me know if you have any questions or concerns. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant