PostgreSQL: ALTER TABLE to change Fillfactor Value

This is one of the important post related to change or set the Fillfactor value for the existing table of the PostgreSQL.

One of our table is very busy with heavy updates and accessing by multiple clients.
I have also estimated the row size of that table which is not that much bigger, so I have decided to change Fillfactor of that table.

I have recently published an article about the importance of Fillfactor in PostgreSQL.

Please Note:
After changing the value of Fillfactor, you should execute VACUUM FULL on that particular table.
After changing the value of Fillfactor, it works only for new tuples.

Anvesh Patel

Leave a Reply

4 Comments on "PostgreSQL: ALTER TABLE to change Fillfactor Value"

Notify of
avatar
Sort by:   newest | oldest | most voted
Eric
Guest

I was just searching for this info for some time. After six hours of continuous Googleing, finally I got it in your web site. I wonder what is the lack of Google strategy that don’t rank this type of informative sites in top of the list. Normally the top websites are full of garbage.

ph
Guest

Ok, after that – how can I reset it to default value? Not just set to 100, but set to empty value.

ph
Guest

Ok. I’ve found!

ALTER TABLE shops.payments_out RESET(
FILLFACTOR
);

exactly in CAPS

wpDiscuz