From: Michael Paquier <michael@paquier.xyz>
To: Bossart, Nathan <bossartn@amazon.com>
Cc: Justin Pryzby <pryzby@telsasoft.com>
Cc: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: k.jamison@fujitsu.com <k.jamison@fujitsu.com>
Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM
Date: Fri, 29 Jan 2021 16:14:36 +0900
Message-ID: <YBO13CG6m9QB91oy@paquier.xyz> (raw)
In-Reply-To: <97F1E30B-98E9-495F-A87E-3C4FEC25D930@amazon.com>
References: <BA8951E9-1524-48C5-94AF-73B1F0D7857F@amazon.com>
<657e9792-29b2-9dda-0ea3-73d8ba28b2ac@2ndquadrant.com>
<38EFD769-F653-4D30-9DD6-1A335F4F9232@amazon.com>
<20210127190640.GT30745@telsasoft.com>
<930F06F8-3425-48A2-9A2E-11404BAA2341@amazon.com>
<20210128010815.GA7450@telsasoft.com>
<97F1E30B-98E9-495F-A87E-3C4FEC25D930@amazon.com>
On Thu, Jan 28, 2021 at 06:16:09PM +0000, Bossart, Nathan wrote:
> I chose TOAST_TABLE_CLEANUP to match the INDEX_CLEANUP option, but I'm
> not wedded to that name. What do you think about PROCESS_TOAST_TABLE?
Most of the other options use a verb, so using PROCESS, or even SKIP
sounds like a good idea. More ideas: PROCESS_TOAST, SKIP_TOAST. I
don't like much the term CLEANUP here, as it may imply, at least to
me, that the toast relation is getting partially processed.
> IMO we should emit an ERROR in this case. If we ignored it, we'd end
> up processing the TOAST table even though the user asked us to skip
> it.
Issuing an error makes the most sense to me per the argument based on
cluster_rel() and copy_table_data(). Silently ignoring options can be
confusing for the end-user.
+ <para>
+ Do not clean up the TOAST table.
+ </para>
Is that enough? I would say instead: "Skip the TOAST table associated
to the table to vacuum, if any."
--
Michael
Attachments:
signature.asc (application/pgp-signature, 832B) download
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: michael@paquier.xyz, bossartn@amazon.com, pryzby@telsasoft.com, vik.fearing@2ndquadrant.com, k.jamison@fujitsu.com
Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM
In-Reply-To: <YBO13CG6m9QB91oy@paquier.xyz>
References: <BA8951E9-1524-48C5-94AF-73B1F0D7857F@amazon.com> <657e9792-29b2-9dda-0ea3-73d8ba28b2ac@2ndquadrant.com> <38EFD769-F653-4D30-9DD6-1A335F4F9232@amazon.com> <20210127190640.GT30745@telsasoft.com> <930F06F8-3425-48A2-9A2E-11404BAA2341@amazon.com> <20210128010815.GA7450@telsasoft.com> <97F1E30B-98E9-495F-A87E-3C4FEC25D930@amazon.com> <YBO13CG6m9QB91oy@paquier.xyz>
* 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