Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bc5847f

Browse files
Removed min limit for bloat in heap bloar report
1 parent 41898bb commit bc5847f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎reporter/postgres_reports.py‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,14 +1002,12 @@ def generate_f004_heap_bloat_report(self, cluster: str = "local", node_name: str
10021002
total_bloat_size = 0
10031003

10041004
for table_data in bloated_tables.values():
1005-
# Skip tables with minimal bloat
1006-
if table_data['bloat_pct'] >= 10: # Only report tables with >= 10% bloat
1007-
table_data['real_size_pretty'] = self.format_bytes(table_data['real_size'])
1008-
table_data['extra_size_pretty'] = self.format_bytes(table_data['extra_size'])
1009-
table_data['bloat_size_pretty'] = self.format_bytes(table_data['bloat_size'])
1010-
1011-
bloated_tables_list.append(table_data)
1012-
total_bloat_size += table_data['bloat_size']
1005+
table_data['real_size_pretty'] = self.format_bytes(table_data['real_size'])
1006+
table_data['extra_size_pretty'] = self.format_bytes(table_data['extra_size'])
1007+
table_data['bloat_size_pretty'] = self.format_bytes(table_data['bloat_size'])
1008+
1009+
bloated_tables_list.append(table_data)
1010+
total_bloat_size += table_data['bloat_size']
10131011

10141012
# Sort by bloat percentage descending
10151013
bloated_tables_list.sort(key=lambda x: x['bloat_pct'], reverse=True)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /