Re: Changing default fillfactor for the whole database - Mailing list pgsql-general

From David Rowley
Subject Re: Changing default fillfactor for the whole database
Date
Msg-id CAApHDvqJ=TnLUZ6kXF9eKB2tncyKKkQLogiN+vW4yrk2hsTqfA@mail.gmail.com
Whole thread Raw
In response to Changing default fillfactor for the whole database  (Marcelo Fernandes <marcefern7@gmail.com>)
List pgsql-general
On Sun, 27 Apr 2025 at 14:31, Marcelo Fernandes <marcefern7@gmail.com> wrote:
> I have a scenario where virtually all user tables in the database will need to
> have a lower fill factor.

> Does this make sense? Have I missed something about being able to change this
> on a database level?

I suspect that it's possible that you can use an event trigger [1]
that triggers on CREATE TABLE to get what you want here. If the docs
don't give you enough information, then maybe [2] will have something
you can work with. I've not used them much, so I don't have any
recipes for you.

David

[1] https://www.postgresql.org/docs/current/sql-createeventtrigger.html
[2] https://github.com/postgres/postgres/blob/master/src/test/regress/sql/event_trigger.sql



pgsql-general by date:

Previous
From: Christophe Pettus
Date:
Subject: Re: Changing default fillfactor for the whole database
Next
From: Igor Korot
Date:
Subject: Re: How to properly fix memory leak