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 1nRzrH-0000Tp-4d for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2022 17:12:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRzrF-000653-NW for pgsql-hackers@arkaria.postgresql.org; Wed, 09 Mar 2022 17:12:17 +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 1nRzrF-00064t-2o for pgsql-hackers@lists.postgresql.org; Wed, 09 Mar 2022 17:12:17 +0000 Received: from anastigmatix.net ([68.171.219.55]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRzrA-0000rS-7D for pgsql-hackers@lists.postgresql.org; Wed, 09 Mar 2022 17:12:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=anastigmatix.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=S9O9gdjd+0mK7vrfVrmY0n9WPEXEJ2pUBAOiqFzNVG8=; b=dK+AcEQInkoka1lvhElKQaY6Nr zCXKd3w+hTEz3iN1P9f4du2DewDsOyMmvVJW+bDGc0C5BKsUlJxxYp4vBUwxYbvQ1H6bKh+0egLa+ XE8QPRyGHYYEaB/EzXXX8xv0TxCDcorpZTEU+rmT5dGrvEi0PZw6UfMhdG29IVsd3q49sg26Uz+m0 mDIYFQzu4KMsX/got+ixy957Gsnox4fbdQhVthPQcvQRgIyTrS8OnEvSEDR8ELaCixUV+dbBB7GaZ 4J/H+s6Cuhkf9bqw72xpO72QIAQUciflLrUCUDKxCgTAJd6WiKaHiIcSR05nRg7674hMs4an1MACa 8WobM7CQ==; Received: from [184.19.43.81] (port=49544) by bay.acenet.us with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1nRzr6-000vyT-S9; Wed, 09 Mar 2022 12:12:09 -0500 Subject: Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file To: Magnus Hagander , Stephen Frost References: <621E6C2E.2050801@anastigmatix.net> <20220301191441.GW10577@tamriel.snowman.net> <621E7A5C.1030203@anastigmatix.net> <20220301200523.GX10577@tamriel.snowman.net> <20220302010302.GA1182956@nathanxps13> <621FC447.90502@anastigmatix.net> <20220308200107.GA85558@nathanxps13> <20220308221253.GA169440@nathanxps13> <622801BD.9020605@anastigmatix.net> <20220309154209.GU10577@tamriel.snowman.net> Cc: Nathan Bossart , David Steele , pgsql-hackers@lists.postgresql.org From: Chapman Flack X-Enigmail-Draft-Status: N1110 Message-ID: <6228DFE7.4080802@anastigmatix.net> Date: Wed, 9 Mar 2022 12:12:07 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bay.acenet.us X-AntiAbuse: Original Domain - lists.postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - anastigmatix.net X-Get-Message-Sender-Via: bay.acenet.us: authenticated_id: chap@anastigmatix.net X-Authenticated-Sender: bay.acenet.us: chap@anastigmatix.net X-Source: X-Source-Args: X-Source-Dir: X-From-Rewrite: unmodified, already matched List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 03/09/22 11:22, Magnus Hagander wrote: >> It's more than just too confusing, it's actively bad because people will >> actually use it and then end up with backups that don't work. > > +1. > > Or even worse, backups that sometimes work, but not reliably and not > every time. > ... > Pretending something is simple when it's not, is not doing anybody a favor. Okay, I bow to this reasoning, for the purpose of this patch. Let's just lose the example. >> Documenting everything that pg_basebackup does to make sure that the >> backup is viable might be something to work on if someone is really >> excited about this, but it's not 'dead-simple' and it's darn close to >> the bare minimum, something that none of these simple scripts will come >> anywhere close to being and instead they'll be far less than the >> minimum. > > Yeah, having the full set of steps required documented certainly > wouldn't be a bad thing. I'd say that qualifies as an understatement. While it certainly doesn't have to be part of this patch, if the claim is that an admin who relies on pg_basebackup is relying on essential things pg_basebackup does that have not been enumerated in our documentation yet, I would argue they should be. > with a different API or a different set of tools. That is not a > documentation task. That is a "start from a list of which things > pg_basebackup cannot do that are still simple, or that tools like > pgbackrest cannot do if they're complicated". And then design an API > that's actually safe and easy to use *for that usecase*. That might also be a good thing, but I don't see it as a substitute for documenting the present reality of what the irreducibly essential behaviors of pg_basebackup (or of third-party tools like pgbackrest) are, and why they are so. Regards, -Chap