Re: Fillfactor effectiveness on existing table

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Fillfactor effectiveness on existing table
Date: 2026-02-10 18:31:08
Message-ID: 8039d3e65e099b6046a48209fd1c194b1493fd8d.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2026-02-10 at 21:25 +0530, Durgamahesh Manne wrote:
> I added fillfactor with less than 100 to existing table then ran vacuum full to take effect 
>
> How to ensure the applied fillfactor is working successfully 
>
> A ratio of hot updates in catalog table should higher than value of n_dead_tup or n_tup_upd? Or what ?

Run

SELECT n_tup_upd, n_tup_hot_upd
FROM pg_stat_all_tables
WHERE relname = 'your table';

Then wait for an hour and run the query again.

See how much "n_tup_upd" and "n_tup_hot_upd" increased in that hour.
If the increase is about the same for both, almost all of your UPDATEs
are HOT.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Durgamahesh Manne 2026-02-11 02:28:41 Re: Fillfactor effectiveness on existing table
Previous Message Ron Johnson 2026-02-10 17:28:03 Re: Fillfactor effectiveness on existing table