From: Bossart, Nathan <bossartn@amazon.com>
To: Justin Pryzby <pryzby@telsasoft.com>
Cc: Vik Fearing <vik.fearing@2ndquadrant.com>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: k.jamison@fujitsu.com <k.jamison@fujitsu.com>
Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM
Date: Thu, 28 Jan 2021 18:16:09 +0000
Message-ID: <97F1E30B-98E9-495F-A87E-3C4FEC25D930@amazon.com> (raw)
In-Reply-To: <20210128010815.GA7450@telsasoft.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>
On 1/27/21, 5:08 PM, "Justin Pryzby" <pryzby@telsasoft.com> wrote:
> Thanks, I wrote my message after running into the issue and remembered this
> thread. I didn't necessarily mean to send another patch :)
No worries. I lost track of this thread, but I don't mind picking it
up again.
> My only comment is on the name: TOAST_TABLE_CLEANUP. "Cleanup" suggests that
> the (main or only) purpose is to "clean" dead tuples to avoid bloat. But in my
> use case, the main purpose is to avoid XID wraparound (or its warnings).
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?
> Okay, my second only comment is that this:
>
> | This option cannot be disabled when the <literal>FULL</literal> option is
> | used.
>
> Should it instead be ignored if FULL is also specified ? Currently only
> PARALLEL and DISABLE_PAGE_SKIPPING cause an error when used with FULL. That's
> documented for PARALLEL, but I think it should also be documented for
> DISABLE_PAGE_SKIPPING (which is however an advanced option).
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.
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, pryzby@telsasoft.com, vik.fearing@2ndquadrant.com, michael@paquier.xyz, k.jamison@fujitsu.com
Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM
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>
* 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