Re: Vacuuming TOAST after pg_restore - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Vacuuming TOAST after pg_restore
Date
Msg-id c0f5e164089553e82d7297e22bd6efdf8bf01346.camel@cybertec.at
Whole thread Raw
In response to Vacuuming TOAST after pg_restore  (Ron Johnson <ronljohnsonjr@gmail.com>)
List pgsql-admin
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



pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: Vacuuming TOAST after pg_restore
Next
From: lejeczek
Date:
Subject: highest timeline xxx of the primary is behind recovery timeline - backup of the underlying filesystem