-
Notifications
You must be signed in to change notification settings - Fork 231
Metric table_bloat_approx_summary_sql fails with Divide by Zero #491
Comments
📅 This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. |
Still applicable. |
What version is affected? Thanks in advance |
I encountered the problem using: pgwatch2 1.9.0 Not sure if it's limited to those versions, or just a problem with newly-created (empty) databases. |
📅 This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. |
Still applicable. |
Sorry for delay with answer. Would you please open the pull request with a fix? Thanks in advance! |
[-] fix `table_bloat_approx_summary_sql` when `tblpages = 0`, closes #491
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.
The text was updated successfully, but these errors were encountered: