pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Kristjan Mustkivi <sonicmonkey@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: TOAST table size in bytes growing despite working autovacuum
Date: Mon, 15 Jun 2020 16:39:50 +0200
Message-ID: <c3328713d6216fdbb7f5bf2d2693c0f93f550548.camel@cybertec.at> (raw)
In-Reply-To: <CAOQPKasTtkToM7Rn5kv6JvZzqk44Nk0WJYSUxa3STKjaoM5arg@mail.gmail.com>
References: <CAOQPKasgHoNpNZqjAfad10xQ5v9niANVXFZGhp=Q+NLwy1y3kw@mail.gmail.com>
	<d80282fda72af6ff87fb9304e21e270b155e19f7.camel@cybertec.at>
	<CAOQPKauXDm905pgx7ei0ZKW=dBWWCFX1uJJgKSnwKxZ9tLN7KA@mail.gmail.com>
	<78fa342abe358a96601c675729dd1eff0fe5481d.camel@cybertec.at>
	<CAOQPKasTtkToM7Rn5kv6JvZzqk44Nk0WJYSUxa3STKjaoM5arg@mail.gmail.com>

On Mon, 2020-06-15 at 16:42 +0300, Kristjan Mustkivi wrote:
> > You should schedule down time and run a VACUUM (FULL) on that table.
> > That will rewrite the table and get rid of the bloat.
> 
> But in order to avoid the situation happening again (as it will with
> the current settings), I should likely make the autovacuuming on the
> TOAST table even more aggressive via
> toast.autovacuum_vacuum_scale_factor tinkering, right?

No, the correct way is to reduce "autovacuum_vacuum_cost_delay".

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (6+ messages)

Message-ID: <c3328713d6216fdbb7f5bf2d2693c0f93f550548.camel@cybertec.at>
Permalink:  ../c3328713d6216fdbb7f5bf2d2693c0f93f550548.camel@cybertec.at/
Also on:    postgresql.org/message-id/c3328713d6216fdbb7f5bf2d2693c0f93f550548.camel@cybertec.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, sonicmonkey@gmail.com
  Subject: Re: TOAST table size in bytes growing despite working autovacuum
  In-Reply-To: <c3328713d6216fdbb7f5bf2d2693c0f93f550548.camel@cybertec.at>
  References: <CAOQPKasgHoNpNZqjAfad10xQ5v9niANVXFZGhp=Q+NLwy1y3kw@mail.gmail.com> <d80282fda72af6ff87fb9304e21e270b155e19f7.camel@cybertec.at> <CAOQPKauXDm905pgx7ei0ZKW=dBWWCFX1uJJgKSnwKxZ9tLN7KA@mail.gmail.com> <78fa342abe358a96601c675729dd1eff0fe5481d.camel@cybertec.at> <CAOQPKasTtkToM7Rn5kv6JvZzqk44Nk0WJYSUxa3STKjaoM5arg@mail.gmail.com> <c3328713d6216fdbb7f5bf2d2693c0f93f550548.camel@cybertec.at>

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

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