pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Steele <david@pgmasters.net>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Pg Hackers <pgsql-hackers@postgresql.org>
Subject: Re: Add recovery to pg_control and remove backup_label
Date: Sun, 5 Nov 2023 13:30:07 -0400
Message-ID: <aea499f7-06cc-43fe-9a89-58402bf12d52@pgmasters.net> (raw)
In-Reply-To: <CAKFQuwbn3rvA7o-=Sbn93mo9MJPDmExBWYa5Lph51hyZWtj13w@mail.gmail.com>
References: <2daf8adc-8db7-4204-a7f2-a7e94e2bfa4b@pgmasters.net>
	<CAKFQuwYPu+PMyNvwnvs0x_7c9X57igMj1ED-kdYhnF+GEZvqJg@mail.gmail.com>
	<2e7c913d-3c60-411a-b7d9-2d728b903286@pgmasters.net>
	<CAKFQuwbn3rvA7o-=Sbn93mo9MJPDmExBWYa5Lph51hyZWtj13w@mail.gmail.com>

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






view thread (48+ messages)  latest in thread

Message-ID: <aea499f7-06cc-43fe-9a89-58402bf12d52@pgmasters.net>
Permalink:  ../aea499f7-06cc-43fe-9a89-58402bf12d52@pgmasters.net/
Also on:    postgresql.org/message-id/aea499f7-06cc-43fe-9a89-58402bf12d52@pgmasters.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: david@pgmasters.net, david.g.johnston@gmail.com
  Subject: Re: Add recovery to pg_control and remove backup_label
  In-Reply-To: <aea499f7-06cc-43fe-9a89-58402bf12d52@pgmasters.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox