Re: Table bloat threshold limit to trigger repack

From: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Table bloat threshold limit to trigger repack
Date: 2026-02-11 02:41:36
Message-ID: CAJCZkoLnmJqYcM5bSmhGnBfbGpqQ9A7BDmyti49DQ7TeeQxxDg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 9 Feb, 2026, 02:16 Adrian Klaver, <adrian(dot)klaver(at)aklaver(dot)com> wrote:

> On 2/8/26 10:05, Durgamahesh Manne wrote:
> >
>
> > Any recommendations are welcome
> > Please find attached ss
> >
>
> FYI, you can copy and paste from a terminal session in Windows.
>
> Just select the text with the mouse and hit Enter, then Ctl+V to paste
> it somewhere else.
>
> Text in an email is easier to work with if someone wants to set up a
> test case on their machine.
>
>
> --
> Adrian Klaver
> adrian(dot)klaver(at)aklaver(dot)com

Hi @Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>

In this case autovacuum triggers for every 1hour on toast table

Access method: heap Options: fillfactor=80,
autovacuum_vacuum_cost_limit=2000, autovacuum_vacuum_cost_delay=10,
autovacuum_enabled=true, autovacuum_vacuum_scale_factor=0.1,
autovacuum_vacuum_threshold=100000, autovacuum_analyze_threshold=20000,
toast.autovacuum_enabled=true, toast.autovacuum_vacuum_scale_factor=0.1,
toast.autovacuum_vacuum_cost_limit=3000,
toast.autovacuum_vacuum_threshold=400000

Please let me know if any recommendations
And need to increase speed of autovacuum execution time which takes 5min to
complete
Ram 128gb
Cpu 32

Autovacuum work mem 6gb assigned
Buffer usage limit?
Regards
Durga Mahesh

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ron Johnson 2026-02-11 03:02:36 Re: Fillfactor effectiveness on existing table
Previous Message Durgamahesh Manne 2026-02-11 02:34:02 Re: Fillfactor effectiveness on existing table