pg_basebackup and snapshots - Mailing list pgsql-hackers

From Stephen Frost
Subject pg_basebackup and snapshots
Date
Msg-id 20200207195647.GM3195@tamriel.snowman.net
Whole thread Raw
Responses Re: pg_basebackup and snapshots
List pgsql-hackers
Greetings,

(Moving to -hackers, changing thread title)

* Andres Freund (andres@anarazel.de) wrote:
> Maybe that's looking too far into the future, but I'd like to see
> improvements to pg_basebackup that make it integrate with root requiring
> tooling, to do more efficient base backups. E.g. having pg_basebackup
> handle start/stop backup and WAL handling, but do the actual backup of
> the data via a snapshot mechanism (yes, one needs start/stop backup in
> the general case, for multiple FSs), would be nice.

The challenge with this approach is that you need to drop the 'backup
label' file into place as part of this operation, either by putting it
into the snapshot after it's been taken, or by putting it into the data
directory at restore time.  Of course, you have to keep track of WAL
anyway from the time the snapshots are taken until the restore is done,
so it's certainly possible, as with all of this, it's just somewhat
complicated.

Certainly open to ideas on how to improve this.

Thanks,

Stephen

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Does recovery write to backup_label ?
Next
From: Chapman Flack
Date:
Subject: Re: Does recovery write to backup_label ?