Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Conversation

marcelorauldiaz
Copy link
Contributor

Since there is no panel in TablesTop that shows which table is bloated, it was added based on the existing table_bloat_approx_stattuple metric.

Following the same line and based on the experience of some cases where I have seen indexes bloats, a metric based on the pgstattuple extension with the help pgstatindex (leaf_fragmentation) function is proposed.

All this was tested in PostgreSQL 12.

@marcelorauldiaz
Copy link
Contributor Author

Grafana screenshots
Top5FragmentationIndexes
TablesTop-MostDeadTuples

@pashagolub pashagolub requested a review from markwort October 14, 2022 15:26
@pashagolub pashagolub changed the title Metric and Dashboard (panel) for bloated indexes and tables [+] add metric and dashboard for bloated indexes and tables Nov 16, 2022
@pashagolub pashagolub merged commit 9e6b9ba into master Nov 16, 2022
@pashagolub pashagolub deleted the table-index-bloat branch December 14, 2022 14:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants