Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qM6XN-001QJN-SX for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Jul 2023 12:44:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qM6XL-004vvs-UI for pgsql-hackers@arkaria.postgresql.org; Wed, 19 Jul 2023 12:44:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qM6XL-004vvj-Kc for pgsql-hackers@lists.postgresql.org; Wed, 19 Jul 2023 12:44:11 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qM6XH-000JNN-Kg for pgsql-hackers@postgresql.org; Wed, 19 Jul 2023 12:44:10 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id 0385960172; Wed, 19 Jul 2023 21:44:03 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 19 Jul 2023 21:44:02 +0900 From: torikoshia To: Michael Paquier Cc: Kyotaro Horiguchi , masao.fujii@oss.nttdata.com, bharath.rupireddyforpostgres@gmail.com, pgsql-hackers@postgresql.org Subject: Re: Allow pg_archivecleanup to remove backup history files In-Reply-To: References: <20230621.115941.1395557545366586431.horikyota.ntt@gmail.com> <20230622.164710.2096056945333906873.horikyota.ntt@gmail.com> <0fd031265a324696c2ac58c5d4b394ef@oss.nttdata.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <2007681410e9316fd35f393769775430@oss.nttdata.com> X-Sender: torikoshia@oss.nttdata.com List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-07-19 13:58, Michael Paquier wrote: > On Fri, Jun 30, 2023 at 03:48:43PM +0900, Michael Paquier wrote: >> I have begun cleaning up my board, and applied 0001 for the moment. > > And a few weeks later.. I have come around this thread and applied > 0002 and 0003. > > The flow of 0002 was straight-forward. My main issue was in 0003, > actually, where the TAP tests were kind of confusing as written: > - There was no cleanup of the files still present after a single > command check, which could easily mess up the tests. > - The --dry-run case was using the list of WAL files for the extension > pattern checks, hardcoding names based on the position of its array. > I have switched that to use a third list of files, instead. > > The result looked OK and that can be extended easily for more > patterns or more commands, so applied 0003 after doing these > adjustments, coupled with a pgperltidy run, a pgperlcritic check and > an indentation. > -- > Michael Thanks for the reviewing and applying the patches! -- Regards, -- Atsushi Torikoshi NTT DATA CORPORATION