pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Victor Sudakov <vas@sibptus.ru>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: wal-g (https://github.com/wal-g/wal-g) reliability
Date: Tue, 9 Feb 2021 12:46:36 -0500
Message-ID: <20210209174636.GY27507@tamriel.snowman.net> (raw)
In-Reply-To: <YCH3pqahVncfF2O2@admin.sibptus.ru>
References: <YB0VuB8RJAKvTI6+@admin.sibptus.ru>
	<CANNMO++t7hLG2Uk-M61ohXGNhBYszSPL8vn=zP09tcRv15QB4A@mail.gmail.com>
	<YCDKyYzrv4HQZz9t@admin.sibptus.ru>
	<20210208212840.GW27507@tamriel.snowman.net>
	<YCH3pqahVncfF2O2@admin.sibptus.ru>

Greetings,

* Victor Sudakov (vas@sibptus.ru) wrote:
> Stephen Frost wrote:
> > > 2. Is there a `wal-g backup-fetch` option for truly self-sufficient
> > > restoration?
> > 
> > Interesting that you ask this!  I say that because it's actually a case
> > that pgbackrest contemplated and explicitly added support for-
> > specifically, if you set --archive-copy (or archive-copy=true) and
> > disable compression (or decompress everything before you start PG), then
> > you can just start PG from the backup and it'll perform the necessary
> > recovery from the WAL and start up.  We considered this an interesting
> > use-case and used it extensively and have maintained support for it.
> 
> Well, the release I've downloaded from https://github.com/wal-g/wal-g/releases
> does not seem to have the --archive-copy option.

Right- as I mentioned above, that's an option which pgbackrest has.

> > All that said, of course, this limits the ability to do typical PITR,
> 
> Why? If you configure recovery_target_time and restore_command, it's all
> the same, isn't it? No matter if you have WAL archives in pg_wal, but
> it's better to have them.

If you have a restore_command configured to be able to pull from a full
repo that has all the new WAL, sure, but the idea behind archive-copy is
specifically that you can pull out that backup and restore it *without*
having to have access to the original repo.  If the assumption is that
you've got access to the full repo, then archive-copy isn't really
gaining you anything and it wouldn't make sense to use it.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (12+ messages)

Message-ID: <20210209174636.GY27507@tamriel.snowman.net>
Permalink:  ../20210209174636.GY27507@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20210209174636.GY27507@tamriel.snowman.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-admin@postgresql.org
  Cc: sfrost@snowman.net, vas@sibptus.ru, pgsql-admin@lists.postgresql.org
  Subject: Re: wal-g (https://github.com/wal-g/wal-g) reliability
  In-Reply-To: <20210209174636.GY27507@tamriel.snowman.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