From: Bossart, Nathan <bossartn@amazon.com>
To: Vik Fearing <vik.fearing@2ndquadrant.com>
To: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM
Date: Fri, 24 Jan 2020 21:24:45 +0000
Message-ID: <38EFD769-F653-4D30-9DD6-1A335F4F9232@amazon.com> (raw)
In-Reply-To: <657e9792-29b2-9dda-0ea3-73d8ba28b2ac@2ndquadrant.com>
References: <BA8951E9-1524-48C5-94AF-73B1F0D7857F@amazon.com>
<657e9792-29b2-9dda-0ea3-73d8ba28b2ac@2ndquadrant.com>
On 1/21/20, 1:39 PM, "Vik Fearing" <vik.fearing@2ndquadrant.com> wrote:
> On 21/01/2020 22:21, Bossart, Nathan wrote:
>> I've attached a patch for a couple of new options for VACUUM:
>> MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP. The motive
>> behind these options is to allow table owners to easily vacuum only
>> the TOAST table or only the main relation. This is especially useful
>> for TOAST tables since roles do not have access to the pg_toast schema
>> by default and some users may find it difficult to discover the name
>> of a relation's TOAST table.
>
>
> Could you explain why one would want to do this? Autovacuum will
> already deal with the tables separately as needed, but I don't see when
> a manual vacuum would want to make this distinction.
The main use case I'm targeting is when the level of bloat or
transaction ages of a relation and its TOAST table have significantly
diverged. In these scenarios, it could be beneficial to be able to
vacuum just one or the other, especially if the tables are large.
Nathan
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-hackers@postgresql.org
Cc: bossartn@amazon.com, vik.fearing@2ndquadrant.com
Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM
In-Reply-To: <38EFD769-F653-4D30-9DD6-1A335F4F9232@amazon.com>
References: <BA8951E9-1524-48C5-94AF-73B1F0D7857F@amazon.com> <657e9792-29b2-9dda-0ea3-73d8ba28b2ac@2ndquadrant.com> <38EFD769-F653-4D30-9DD6-1A335F4F9232@amazon.com>
* 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