From: | David Rowley <dgrowleyml(at)gmail(dot)com> |
---|---|
To: | Marcelo Fernandes <marcefern7(at)gmail(dot)com> |
Cc: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: Changing default fillfactor for the whole database |
Date: | 2025-04-27 03:30:24 |
Message-ID: | CAApHDvqJ=TnLUZ6kXF9eKB2tncyKKkQLogiN+vW4yrk2hsTqfA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Sun, 27 Apr 2025 at 14:31, Marcelo Fernandes <marcefern7(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Igor Korot | 2025-04-27 04:58:00 | Re: How to properly fix memory leak |
Previous Message | Christophe Pettus | 2025-04-27 03:15:42 | Re: Changing default fillfactor for the whole database |