Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l92C9-0007zL-1F for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Feb 2021 08:46:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l92C7-0007F3-RK for pgsql-hackers@arkaria.postgresql.org; Mon, 08 Feb 2021 08:46:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l92C7-0007Ew-GU for pgsql-hackers@lists.postgresql.org; Mon, 08 Feb 2021 08:46:55 +0000 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l92C1-0002Hj-1z for pgsql-hackers@postgresql.org; Mon, 08 Feb 2021 08:46:54 +0000 Received: by mail-io1-xd2d.google.com with SMTP id s24so14140613iob.6 for ; Mon, 08 Feb 2021 00:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=3M0yM+quh1yWjCjai7ViSrE6XffiRm/iD8FSyu7t9u4=; b=vCob22K65+Z+M0KFdm6tvolfS9XtPylvuvh/sdzERvGedqdkO5yEmS5PBel219r1mv iXUGm4bS4fnTYttNEeVgZrs9C3rWLkXlgPeXm+0iQ9nQm8dG3jAkZK/B8g4p5f05z6LA avQVslNaZYGsCY5drKDMPjv/yMPoPPB0x+fuCQFJVu4tIh5bnEr07Iq08iBpA+uZJC0S QrbugR/8SdblAWfbPDHworY9wHe0rtSCthkMYLyp/Zyh7cnXGV5VjJncqYMY+jhzELrx TaXp6YXnOG0yjwYlOQcdnisXoZ7sb4/dQ+iEF8QtG4eLIdypsOvBavucotoV1bFIt4ar dAYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=3M0yM+quh1yWjCjai7ViSrE6XffiRm/iD8FSyu7t9u4=; b=JZrPDhrCm6wyZT3BJ8U6W8Vhi8sDb/zBQJ698S8wpWm4pH0hBmvaggmOQMOIgZFSIh QJO8jQM2cBHGUHxCe81RG6VPIIWlovkJI0X9X09IHQza5HqTfA/aM9q7/vm2ZoQtDbnu bgPrdcRr/cj4yfXm9RP+oabF5bih3s7xBZOw+e7dzPPgJtjlFigMAreI2VoXxknkJJq+ 3375yRv8qrxMIHtfmtf10nR4xOBSZ+HPXa46nlGzbI3cQwikQOclqjfXDeEZpuNTNhBI 8IUYDma8iGJGbledy15HMef2Q4fd5OdwZLmyGYdDyASDXAUMcXlLNJw09BTVsBZlADrm LVfA== X-Gm-Message-State: AOAM5302GV3qBLba290zgUeet3QeIOhJRQGsGTmaVyePBVEMFNPD8wn5 w8MUjT0TyNA2jcBphEs8dp2trg== X-Google-Smtp-Source: ABdhPJx+Wt6EzIasi42LeD6pLSD8i341u4Jxe9mKshgiOCg1ogideoc0oo6ZTwpevLDuY83bNtTEiA== X-Received: by 2002:a02:83ca:: with SMTP id j10mr4023063jah.129.1612774007292; Mon, 08 Feb 2021 00:46:47 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id o131sm8447219ila.5.2021.02.08.00.46.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2021 00:46:46 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 5D1588008E0; Mon, 8 Feb 2021 02:46:45 -0600 (CST) Date: Mon, 8 Feb 2021 02:46:45 -0600 From: Justin Pryzby To: Michael Paquier Cc: "Bossart, Nathan" , Vik Fearing , "pgsql-hackers@postgresql.org" , "k.jamison@fujitsu.com" Subject: Re: Add MAIN_RELATION_CLEANUP and SECONDARY_RELATION_CLEANUP options to VACUUM Message-ID: <20210208084645.GR7450@telsasoft.com> References: <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> <855FB31E-5616-4910-BFF2-ABFE24716F50@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Mon, Feb 08, 2021 at 04:35:19PM +0900, Michael Paquier wrote: > On Fri, Jan 29, 2021 at 06:43:44PM +0000, Bossart, Nathan wrote: > > I changed it to PROCESS_TOAST. > > Thanks. PROCESS_TOAST sounds good to me at the end for the option > name, so let's just go with that. > > > Done. > > While on it, I could not resist with changing VACOPT_SKIPTOAST to > VACOPT_PROCESS_TOAST on consistency grounds. This is used only in > four places in the code, so that's not invasive. +1 > @@ -971,6 +998,7 @@ help(const char *progname) > printf(_(" --min-mxid-age=MXID_AGE minimum multixact ID age of tables to vacuum\n")); > printf(_(" --min-xid-age=XID_AGE minimum transaction ID age of tables to vacuum\n")); > printf(_(" --no-index-cleanup don't remove index entries that point to dead tuples\n")); > + printf(_(" --no-process-toast skip the TOAST table associated to the table to vacuum, if any\n")); say "associated WITH" > + corresponding TOAST table for each relation, if one > + exists. This is normally the desired behavior and is the default. > + Setting this option to false may be useful when it is necessary to only Maybe it should say "when it is only necessary to" But what you've written isn't wrong, depending on what you mean. > @@ -244,6 +244,21 @@ PostgreSQL documentation > + Skip the TOAST table associated to the table to vacuum, if any. associatd with -- Justin