public inbox for [email protected]  
help / color / mirror / Atom feed
From: David Rowley <[email protected]>
To: Marcelo Fernandes <[email protected]>
Cc: [email protected]
Subject: Re: Changing default fillfactor for the whole database
Date: Sun, 27 Apr 2025 15:30:24 +1200
Message-ID: <CAApHDvqJ=TnLUZ6kXF9eKB2tncyKKkQLogiN+vW4yrk2hsTqfA@mail.gmail.com> (raw)
In-Reply-To: <CAM2F1VMu747bv5X3wTvhzLQUWRaJzREdaS=coVz+WjxkBjzvng@mail.gmail.com>
References: <CAM2F1VMu747bv5X3wTvhzLQUWRaJzREdaS=coVz+WjxkBjzvng@mail.gmail.com>

On Sun, 27 Apr 2025 at 14:31, Marcelo Fernandes <[email protected]> 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






view thread (5+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Changing default fillfactor for the whole database
  In-Reply-To: <CAApHDvqJ=TnLUZ6kXF9eKB2tncyKKkQLogiN+vW4yrk2hsTqfA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox