| From: | Stephen Frost <sfrost(at)snowman(dot)net> | 
|---|---|
| To: | Victor Sudakov <vas(at)sibptus(dot)ru> | 
| Cc: | pgsql-admin(at)lists(dot)postgresql(dot)org | 
| Subject: | Re: wal-g (https://github.com/wal-g/wal-g) reliability | 
| Date: | 2021-02-09 17:46:36 | 
| Message-ID: | 20210209174636.GY27507@tamriel.snowman.net | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-admin | 
Greetings,
* Victor Sudakov (vas(at)sibptus(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Wells Oliver | 2021-02-09 18:00:10 | Postgres 12 -> 13 any need to re-index? | 
| Previous Message | Victor Sudakov | 2021-02-09 11:07:52 | Re: wal-g (https://github.com/wal-g/wal-g) reliability |