We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c492ea commit 0d4f635Copy full SHA for 0d4f635
postgres/.psqlrc
@@ -20,7 +20,7 @@
20
21
\set QUIET ON
22
23
-\pset pager on
+\pset pager off
24
25
\pset null 'NULL'
26
postgres/postgres_table_and_index_bloat_stats.sql
@@ -127,5 +127,12 @@ FROM (
127
AND nn.nspname <> 'information_schema'
128
LEFT JOIN pg_index i ON indrelid = cc.oid
129
LEFT JOIN pg_class c2 ON c2.oid = i.indexrelid) AS sml
130
+WHERE
131
+ROUND((
132
+ CASE WHEN otta = 0 THEN
133
+ 0.0
134
+ ELSE
135
+ sml.relpages::float / otta
136
+ END)::numeric, 1) > 10
137
ORDER BY
138
2,4,3 DESC;
0 commit comments