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 1qzgy4-000Hsj-Tm for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Nov 2023 17:31:24 +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 1qzgx4-00AB13-7A for pgsql-hackers@arkaria.postgresql.org; Sun, 05 Nov 2023 17:30:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qzgx3-00AB0u-Tg for pgsql-hackers@lists.postgresql.org; Sun, 05 Nov 2023 17:30:21 +0000 Received: from mail.thelabyrinth.net ([45.56.70.56]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qzgww-004rm3-ER for pgsql-hackers@postgresql.org; Sun, 05 Nov 2023 17:30:20 +0000 Received: from [10.5.0.2] (unknown [107.175.40.213]) (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 793315467E; Sun, 5 Nov 2023 17:30:11 +0000 (UTC) Message-ID: Date: Sun, 5 Nov 2023 13:30:07 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add recovery to pg_control and remove backup_label Content-Language: en-US To: "David G. Johnston" Cc: Pg Hackers References: <2daf8adc-8db7-4204-a7f2-a7e94e2bfa4b@pgmasters.net> <2e7c913d-3c60-411a-b7d9-2d728b903286@pgmasters.net> From: David Steele In-Reply-To: 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 10/27/23 13:45, David G. Johnston wrote: > > Let me modify that to make it a bit more clear, I actually wouldn't care > if pg_backup_end outputs an entire binary pg_control file as part of the > SQL resultset. > > My proposal would be to, in addition, place in the temporary directory > on the server, Postgres-written versions of pg_control and > tablespace_map as part of the pg_backup_end processing.  The client > software would then have a choice.  Write the contents of the SQL > resultset to newly created binary mode files in the destination, or, > copy the server-written files from the temporary directory to the > destination. > > That said, I'm starting to dislike that idea myself.  It only really > makes sense if the files could be placed in the data directory but that > isn't doable given concurrent backups and not wanting to place the > source server into an inconsistent state. Pretty much the conclusion I have come to myself over the years. Regards, -David