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 1pDqu4-0006Ua-RM for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Jan 2023 17:53:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pDqu3-0004XZ-7H for pgsql-hackers@arkaria.postgresql.org; Fri, 06 Jan 2023 17:53:15 +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 1pDqu2-0004WB-UG for pgsql-hackers@lists.postgresql.org; Fri, 06 Jan 2023 17:53:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pDqu0-0007fc-JY for pgsql-hackers@lists.postgresql.org; Fri, 06 Jan 2023 17:53:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 306Hr7hE3018168; Fri, 6 Jan 2023 12:53:07 -0500 From: Tom Lane To: Nathan Bossart cc: Justin Pryzby , Peter Geoghegan , postgresql@taljaren.se, pgsql-hackers@lists.postgresql.org, Michael Paquier Subject: Re: BUG #17717: Regression in vacuumdb (15 is slower than 10/11 and possible memory issue) In-reply-to: <20221229213719.GA301584@nathanxps13> References: <3544447.1671141436@sss.pgh.pa.us> <3672943.1671202149@sss.pgh.pa.us> <407579.1672258403@sss.pgh.pa.us> <20221229012354.GF1153@telsasoft.com> <451605.1672280274@sss.pgh.pa.us> <576868.1672334578@sss.pgh.pa.us> <20221229182657.GA165622@nathanxps13> <599741.1672345755@sss.pgh.pa.us> <20221229213719.GA301584@nathanxps13> Comments: In-reply-to Nathan Bossart message dated "Thu, 29 Dec 2022 13:37:19 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3018166.1673027587.1@sss.pgh.pa.us> Date: Fri, 06 Jan 2023 12:53:07 -0500 Message-ID: <3018167.1673027587@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Nathan Bossart writes: > On Thu, Dec 29, 2022 at 03:29:15PM -0500, Tom Lane wrote: >> I tried to make a patch along these lines, and soon hit a stumbling >> block: ONLY is a fully-reserved SQL keyword. I don't think this >> syntax is attractive enough to justify requiring people to >> double-quote the option, so we are back to square one. Anybody >> have a different suggestion? > ... adding both SKIP_DATABASE_STATS and ONLY_DATABASE_STATS might be the > best bet. Nobody has proposed a different bikeshed color, so I'm going to proceed with that syntax. I'll incorporate the parallel-machinery fix from your patch and push to HEAD only (since it's hard to argue this isn't a new feature). This needn't foreclose pursuing the various ideas about making vac_update_datfrozenxid faster; but none of those would eliminate the fundamental O(N^2) issue AFAICS. regards, tom lane