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 1msDtO-0001bG-JU for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Dec 2021 00:54:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1msDtN-00034C-9N for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Dec 2021 00:54:37 +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 1msDtL-00030o-MR for pgsql-hackers@lists.postgresql.org; Wed, 01 Dec 2021 00:54:36 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1msDtI-0003tk-VK for pgsql-hackers@postgresql.org; Wed, 01 Dec 2021 00:54:34 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C78395C0222; Tue, 30 Nov 2021 19:54:31 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 30 Nov 2021 19:54:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=Y/Hc1/BykgneMtG0jO8A4wzHoyr 0a03qu8nRZUhL7ok=; b=qbYk2KhIzSfuG/Qea8eWpHzipxoCXCs3xAFDZP3MMi2 5S2q2dWoEJxXoNwi7vxf0y5wUED1tI+GbeICY26NlDNNAvZhO94VdTaklJO+rYOh wLoYmMXBQ7Hrcxu8FD+XJYrf5GqBLkDXkBJlf/pGJaSTeS0pzQ3mGa2cuZ1QDNSP f4FUNI/kFlN5PabucRpvadlCcDY5z1JUtRCQSnAj0dKDHnqoKAdZgP5PKJY+PZLb YSHTvbW0zqQUKEQiz4387ovt+qCn79eWSgVXTASe3z9SKQ5Of+d0SSo3UvAdSk6K t42vaV4QPKfYOTIOiJM8BZmFAULklwegLfntRpGb4Ww== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=Y/Hc1/ BykgneMtG0jO8A4wzHoyr0a03qu8nRZUhL7ok=; b=D+N0+SGw1ZHCObhpsYFmii 7JfDvPnB4808HyejiCrNVkVnEUrx6VC4OMWhdD4v5Bg4Ma60RweSkEOraoTWFG4P sn6hT6Z8SY0IvKcfRRxJWpMP3wjwdO5M5xvJ3j7xe4rG6TpFDW86dmvyvMD1WrNZ QgaI2q8vcwNhnzr3NU7vlz7e24yJcLIk2k5aT4X43MNKn51h7P5OAXmC+KGGNMn9 g4XWgzxGXPhqwCzEOg1PMlCEtMwLY/ofzCU09ejqjnKMfEMnXNjLZaI2kSK9VgCY oGeJ/RPlGOUNvcI8+RC4p66N8Mx7iS90EEmjWz2WEKTNJ6Ti5FB1zTnK22IL0G3g == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddriedvgddvkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepvdegudeuhfdtueeltedtveejheeh ieevueeigeelteegleejleeiueeiheegvefhnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 30 Nov 2021 19:54:28 -0500 (EST) Date: Wed, 1 Dec 2021 09:54:18 +0900 From: Michael Paquier To: David Steele Cc: Tom Lane , "Bossart, Nathan" , Stephen Frost , Laurenz Albe , Pg Hackers , SATYANARAYANA NARLAPURAM Subject: Re: Postgres restart in the middle of exclusive backup and the presence of backup_label file Message-ID: 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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="QWANPC1kE0EY0oZC" Content-Disposition: inline In-Reply-To: <1cce9981-2c48-981a-a936-812830dfb3b1@pgmasters.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --QWANPC1kE0EY0oZC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Nov 30, 2021 at 05:58:15PM -0500, David Steele wrote: > The main objections as I recall are that it is much harder for simple backup > scripts and commercial backup integrations to hold a connection to postgres > open and write the backup label separately into the backup. I don't quite understand why this argument would not hold even today, even if I'd like to think that more people are using pg_basebackup. > I did figure out how to keep the safe part of exclusive backup (not having > to maintain a connection) while removing the dangerous part (writing > backup_label into PGDATA), but it was a substantial amount of work and I > felt that it had little chance of being committed. Which was, I guess, done by storing the backup_label contents within a file different than backup_label, still maintained in the main data folder to ensure that it gets included in the backup? -- Michael --QWANPC1kE0EY0oZC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmGmx7oACgkQnvQgOdby QH2c5g//RkSwI7LDu9oVZ/dq/Juli/Ez3It5LdCwYnS0aCopjE0dDsvUZ8aSHx5X sNR9ZRXrYNZsWMP/8oBOg2G/RpMmOBJOXuWdwICqcEEnTC3+vEhpaLPqStIiWp/b tbiFf8NO8Xw94zTWrjJZBRDww4qTmFrz+6ysSX3QmuTtdbpWJBJNA1oNYqhY3DAW jBUJhCzUgXjb0dCwRy5l+V9HL8/XXyXIMV0F6JxxkDsa8v1pYsRfq5WEp2f02TVP AcR8iOFlp0og4J5L7woBzfRrRD2JzTZAd9kmU1AbVjEKqowcGAixPDfDv1tt3bSE i1TDlRSiDJvwV0HGN+akRCkdC36lhcqyIJK8q9bNpL46SdCgFuSGVfK2PN7W4+jj 8bON6ABXDxC0t8vTZARrNb3BvE7YRI2cdtt5N1coyPQ7yag/KY+xiTmWPYONxt5/ ebSYh0mx62tB6f4i7u1DE8WFKwRWWVqiiGqNuCW46Yffxbb9m9LFBB4bLlZRgDsQ rjy9CPAyE/FDe4ep6HdfInrldGSP7lL/4kyYvf8N7ZpvgvOoESV1HuSUCfuON3N5 Wi9RY9tSdSXbTNrpszCTgAGLTnDf5z/pKk8+myjkLlOgSFTs/cNbYm0r+BJS9R53 vk+lm5ts4+g93hK4VLLQgMJNDgIee92YhWVN/mFngy9Z+qPYmjs= =UwxH -----END PGP SIGNATURE----- --QWANPC1kE0EY0oZC--