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 1qyOKK-0085JJ-2p for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Nov 2023 03:25:00 +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 1qyOKI-00AejG-E6 for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Nov 2023 03:24:58 +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 1qyOKI-00Aej8-4V for pgsql-hackers@lists.postgresql.org; Thu, 02 Nov 2023 03:24:58 +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 1qyOKF-003XlB-5z for pgsql-hackers@postgresql.org; Thu, 02 Nov 2023 03:24:56 +0000 Received: from oss.nttdata.com (localhost [127.0.0.1]) by oss.nttdata.com (Postfix) with ESMTPA id A3AE461023; Thu, 2 Nov 2023 12:24:50 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at oss.nttdata.com MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 02 Nov 2023 12:24:50 +0900 From: torikoshia To: Alexander Kukushkin Cc: Kyotaro Horiguchi , michael@paquier.xyz, pgsql-hackers@postgresql.org, bungina@gmail.com, pgsql-hackers@lists.postgresql.org Subject: Re: pg_rewind WAL segments deletion pitfall In-Reply-To: References: <8b385bb6d5f87e54c1c6333fece0444a@oss.nttdata.com> <20230824.094538.2107929879048686192.horikyota.ntt@gmail.com> <763cac924055f1669578bea950c667c7@oss.nttdata.com> User-Agent: Roundcube Webmail/1.4.11 Message-ID: <293cf2c14c149cb333dd30ae39e08e4e@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-10-31 00:26, Alexander Kukushkin wrote: > Hi, > > On Wed, 18 Oct 2023 at 08:50, torikoshia > wrote: > >> I have very minor questions on the regression tests mainly regarding >> the >> consistency with other tests for pg_rewind: > > Please find attached a new version of the patch. It addresses all your > comments. Thanks for updating the patch! > +extern void preserve_file(char *filepath); Is this necessary? This function was defined in older version patch, but no longer seems to exist. +# We use "perl -e 'exit(1)'" as a alternative to "false", because the last one 'a' should be 'an'? -- Regards, -- Atsushi Torikoshi NTT DATA Group Corporation