pgwatch2 icon indicating copy to clipboard operation
pgwatch2 copied to clipboard

Metric table_bloat_approx_summary_sql fails with Divide by Zero

Open dtmdl opened this issue 3 years ago • 4 comments

Similar to #464 (get_table_bloat_approx_sql), the table_bloat_approx_summary_sql fails with a divide by zero error in some circumstances. I applied the same fix to the postgres 12 metric_su.sql, and it appears to work correctly.

dtmdl avatar Jun 10 '22 12:06 dtmdl

📅 This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. ♻️ If you think there is new information allowing us to address the issue, please reopen it and provide us with updated details. 🤝 Thank you for your contributions.

github-actions[bot] avatar Aug 10 '22 00:08 github-actions[bot]

Still applicable.

dtmdl avatar Aug 10 '22 08:08 dtmdl

What version is affected?

Thanks in advance

pashagolub avatar Aug 10 '22 13:08 pashagolub

I encountered the problem using:

pgwatch2 1.9.0 postgresql 14.4

Not sure if it's limited to those versions, or just a problem with newly-created (empty) databases.

dtmdl avatar Aug 15 '22 13:08 dtmdl

📅 This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. ♻️ If you think there is new information allowing us to address the issue, please reopen it and provide us with updated details. 🤝 Thank you for your contributions.

github-actions[bot] avatar Oct 15 '22 00:10 github-actions[bot]

Still applicable.

dtmdl avatar Oct 18 '22 17:10 dtmdl

Sorry for delay with answer. Would you please open the pull request with a fix?

Thanks in advance!

pashagolub avatar Nov 24 '22 14:11 pashagolub