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 1n5peL-00029M-FD for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Jan 2022 13:51:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n5peK-0006j0-BE for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Jan 2022 13:51:20 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5peK-0006in-1k for pgsql-hackers@lists.postgresql.org; Fri, 07 Jan 2022 13:51:20 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n5peH-00067w-HB for pgsql-hackers@postgresql.org; Fri, 07 Jan 2022 13:51:18 +0000 Received: from [10.4.0.244] (unknown [209.160.118.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: dsteele) by mail.thelabyrinth.net (Postfix) with ESMTPSA id 9279A54684; Fri, 7 Jan 2022 13:51:15 +0000 (UTC) Message-ID: Date: Fri, 7 Jan 2022 08:51:14 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file Content-Language: en-US To: Euler Taveira , "Bossart, Nathan" , Andrew Dunstan , Tom Lane Cc: Stephen Frost , Laurenz Albe , Michael Paquier , pgsql-hackers , SATYANARAYANA NARLAPURAM References: <417711.1637940660@sss.pgh.pa.us> <20211130142042.GR26257@tamriel.snowman.net> <3404870c1a921bafbcd168c098088981fe082ab1.camel@cybertec.at> <845544A4-0B0E-41D2-903C-C8B9E8A18812@amazon.com> <1661037.1638311167@sss.pgh.pa.us> <1cce9981-2c48-981a-a936-812830dfb3b1@pgmasters.net> <9427c6b3-5e0b-e27f-a2e7-ec1ebc00b582@pgmasters.net> <4a363c5a-473f-9cb9-9f59-74a230575340@dunslane.net> <553d2348-1015-3546-2be8-b5a8a745dfa8@pgmasters.net> <816909aa-8772-4cfb-897f-6c75b9ce618c@www.fastmail.com> From: David Steele In-Reply-To: <816909aa-8772-4cfb-897f-6c75b9ce618c@www.fastmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 1/6/22 20:20, Euler Taveira wrote: > On Thu, Jan 6, 2022, at 9:48 PM, Bossart, Nathan wrote: >> After a quick glance, I didn't see an easy way to hold a session open >> while the test does other things.  If there isn't one, modifying >> backup_fs_hot() to work with non-exclusive mode might be more trouble >> than it is worth. > > You can use IPC::Run to start psql in background. See examples in > src/test/recovery. I don't think updating backup_fs_hot() is worth it here. backup_fs_cold() works just fine for this case and if there is a need for backup_fs_hot() in the future it can be implemented as needed. Regards, -David