From: Laurenz Albe <laurenz.albe@cybertec.at>
To: senor <frio_cervesa@hotmail.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: vacuum TOAST tables
Date: Fri, 21 Apr 2023 08:39:02 +0200
Message-ID: <1d84ecfca8a7c58e143d7d64c66d61bfb694d9e3.camel@cybertec.at> (raw)
In-Reply-To: <SN4P221MB0683B5B93A92070F985FAD43F7639@SN4P221MB0683.NAMP221.PROD.OUTLOOK.COM>
References: <SN4P221MB0683B5B93A92070F985FAD43F7639@SN4P221MB0683.NAMP221.PROD.OUTLOOK.COM>
On Fri, 2023-04-21 at 04:37 +0000, senor wrote:
> PostgreSQL v11.19-1PGDG.rhel7 (upgrading to 12+ is so far only talk)
> CentOS 7.9
>
> If I understand correctly, autovacuum handles tables and their associated TOAST tables separately
> but a manual vacuum will also vacuum the TOAST.
That is correct.
> When manually vacuuming does it matter whether it's the main table or TOAST?
It makes a difference. As superuser you can directly VACUUM a toast table, and that will
no VACUUM the table it belongs to. However, if you VACUUM the main table, both tables
will be vacuumed, which is more work. So if you only need VACUUM on the toast table,
doing that directly will be cheaper.
> I've posted before about these same systems. It'll get to age(datfrozenxid) > 2,000,000,000 and
> is not able to keep up until I get it back down to under ~600000000. Then it starts humming along
> as if I "cleared" something.
That sounds unsavory. Did you set "autovacuum_freeze_max_age" to an extremely high value?
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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, frio_cervesa@hotmail.com
Subject: Re: vacuum TOAST tables
In-Reply-To: <1d84ecfca8a7c58e143d7d64c66d61bfb694d9e3.camel@cybertec.at>
References: <SN4P221MB0683B5B93A92070F985FAD43F7639@SN4P221MB0683.NAMP221.PROD.OUTLOOK.COM> <1d84ecfca8a7c58e143d7d64c66d61bfb694d9e3.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