Skip to content

Commit 45f54d2

Browse files
committed
b1: fillfactor column added
1 parent 8e40d23 commit 45f54d2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sql/b1_table_estimation.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,13 @@ select
7575
greatest(last_autovacuum, last_vacuum)::timestamp(0)::text
7676
|| case greatest(last_autovacuum, last_vacuum)
7777
when last_autovacuum then ' (auto)'
78-
else '' end as "Last Vaccuum"
78+
else '' end as "Last Vaccuum",
79+
(
80+
select
81+
coalesce(substring(array_to_string(reloptions, ' ') from 'fillfactor=([0-9]+)')::smallint, 100)
82+
from pg_class
83+
where oid = tblid
84+
) as fillfactor
7985
from step4
8086
order by real_size desc nulls last
8187
;

0 commit comments

Comments
 (0)