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 1nP78z-0005rd-Vi for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Mar 2022 18:22:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nP78y-0005mc-L9 for pgsql-hackers@arkaria.postgresql.org; Tue, 01 Mar 2022 18:22:40 +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 1nP78y-0005mT-Bu for pgsql-hackers@lists.postgresql.org; Tue, 01 Mar 2022 18:22:40 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nP78r-0001gM-Uf for pgsql-hackers@lists.postgresql.org; Tue, 01 Mar 2022 18:22:40 +0000 Received: from [10.4.0.55] (unknown [209.160.113.216]) (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 0AD0D54625; Tue, 1 Mar 2022 18:22:29 +0000 (UTC) Message-ID: <1f685b3a-7ec2-825e-bb2b-d87d78ad5bd9@pgmasters.net> Date: Tue, 1 Mar 2022 12:22:25 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file Content-Language: en-US To: Nathan Bossart , Chapman Flack Cc: pgsql-hackers@lists.postgresql.org References: <20220221172306.GA3698472@nathanxps13> <164589413251.1035.2695761148079719188.pgcf@coridan.postgresql.org> <20220226220614.GA673898@nathanxps13> <20220301055100.GA1002387@nathanxps13> <621E4529.1090601@anastigmatix.net> <20220301173208.GB1031413@nathanxps13> From: David Steele In-Reply-To: <20220301173208.GB1031413@nathanxps13> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/1/22 11:32, Nathan Bossart wrote: > On Tue, Mar 01, 2022 at 11:09:13AM -0500, Chapman Flack wrote: >> On 03/01/22 09:44, David Steele wrote: >>> Personally, I am in favor of removing it. We change/rename >>> functions/tables/views when we need to, and this happens in almost every >>> release. >> >> For clarification, is that a suggestion to remove the 'exclusive' parameter >> in some later release, after using this release to default it to false and >> reject calls with true? > > My suggestion was to remove it in v15. My impression is that David and > Stephen agree, but I could be misinterpreting their responses. I agree and I'm pretty sure Stephen does as well. >> That way, at least, there would be a period of time where procedures >> that currently work (by passing exclusive => false) would continue to work, >> and could be adapted as time permits by removing that argument, with no >> behavioral change. > > I'm not sure if there's any advantage to kicking the can down the road. At > some point, we'll need to break existing backup scripts. Will we be more > prepared to do that in v17 than we are now? We could maintain two sets of > functions for a few releases and make it really clear in the documentation > that pg_start/stop_backup() are going to be removed soon (and always emit a > WARNING when they are used). Would that address your concerns? I think people are going to complain no matter what. If scripts are being maintained changing the name is not a big deal (though moving from exclusive to non-exclusive may be). If they aren't being maintained then they'll just blow up a few versions down the road when we remove the compatibility functions. Regards, -David