Skip to content

(PE-40043) Remove faulty index bloat statistics #206

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

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

Sharpie
Copy link
Member

@Sharpie Sharpie commented Feb 13, 2025

This commit removes index bloat estimates added in SUP-2115 from psql_metrics. Collection of this data can result in some amount of temporary files written to disk every 5 minutes due to the nested group and sort operations involved. The bloat values generated were also of questionable quality producing both "reasonable" numbers like 50% bloat and absolutely unusable numbers like -230% bloat.

The table bloat estimate is retained as the query there is less complicated, operates directly on postgres page counts and fill percentages, and does not produce the same negative estimates that the index bloat query is generating.

This partially reverts commit 7497949.

This commit removes index bloat estimates added in SUP-2115
from `psql_metrics`. Collection of this data can result in
some amount of temporary files written to disk every
5 minutes due to the nested group and sort operations
involved. The bloat values generated were also of questionable
quality producing both "reasonable" numbers like 50% bloat
and absolutely unusable numbers like -230% bloat.

The table bloat estimate is retained as the query there
is less complicated, operates directly on postgres page
counts and fill percentages, and does not produce the
same negative estimates that the index bloat query is
generating.

This partially reverts commit 7497949.
@Sharpie Sharpie merged commit ce879ba into puppetlabs:main Feb 14, 2025
25 checks passed
@Sharpie Sharpie deleted the PE-40043-remove-index-bloat branch February 14, 2025 20:31
@Sharpie Sharpie added the bugfix label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants