From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ron Johnson <ronljohnsonjr@gmail.com>
To: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Vacuuming TOAST after pg_restore
Date: Tue, 19 Dec 2023 08:18:38 +0100
Message-ID: <c0f5e164089553e82d7297e22bd6efdf8bf01346.camel@cybertec.at> (raw)
In-Reply-To: <CANzqJaD+KQU7PmaX72DsVhZ0kC=NfENC1ZAh+32ZbrH_frpE3g@mail.gmail.com>
References: <CANzqJaD+KQU7PmaX72DsVhZ0kC=NfENC1ZAh+32ZbrH_frpE3g@mail.gmail.com>
On Mon, 2023-12-18 at 17:26 -0500, Ron Johnson wrote:
> PG 14.10
>
> In the immediate post-pg_restore vaccumdb, can I skip immediate vacuuming of TOAST tables?
>
> Heck, can I skip the immediate VACUUM, and only do an ANALYZE (then go back later and VACUUM)?
You don't have to do that at all, autovacuum will do it for you (ANALYZE if the
tables contain more than 50 rows, and VACUUM if they contain more than 1000 rows).
It just takes some more time to let autovacuum do it.
Yours,
Laurenz Albe
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: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Vacuuming TOAST after pg_restore
In-Reply-To: <c0f5e164089553e82d7297e22bd6efdf8bf01346.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