From: Paul Förster <paul.foerster@gmail.com>
To: Stephen Frost <sfrost@snowman.net>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Wolff, Ken L <ken.l.wolff@lmco.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Netapp SnapCenter
Date: Mon, 22 Jun 2020 08:02:06 +0200
Message-ID: <F3685BE9-6742-4E76-B79D-A89BC115F9CD@gmail.com> (raw)
In-Reply-To: <20200622053610.GB3125@tamriel.snowman.net>
References: <d50941e9fdbf45dba528ba2b7ee9cb58@lmco.com>
<4D23B288-6A0B-4BDB-A723-FC47F2E832C7@gmail.com>
<CABUevEyBG1+kKiT7wuSZ5OJ0WAjYztZDr2_pDe5ZivbEuU3cCg@mail.gmail.com>
<2C6D03C3-CFF0-4F14-BA83-A2809BA29196@gmail.com>
<20200618192642.GH6680@tamriel.snowman.net>
<D737C052-464D-423B-887F-F322D1B44109@gmail.com>
<20200619160248.GI6680@tamriel.snowman.net>
<064CCB04-4279-48F1-AF1A-1C3036843350@gmail.com>
<CABUevEwUCkjgq1pWnXpiNbgJ+oGaBU7+_kjM6Rps1HnOoUGN6w@mail.gmail.com>
<D0D2ED86-87F4-4F7A-B0B1-FFE14EB3D65E@gmail.com>
<20200622053610.GB3125@tamriel.snowman.net>
Hi Stephen,
> On 22. Jun, 2020, at 07:36, Stephen Frost <sfrost@snowman.net> wrote:
> That's not the only case that I, at least, have heard of- folks aren't
> really very happy with their backups fail when they could have just as
> well completed, even if they're overlapping. Sure, it's better if
> backups are scheduled such that they don't overlap, but that can be hard
> to guarantee.
I see.
> The thing about this is though that the new API avoids *other* issues,
> like what happens if the system crashes during a backup (which is an
> entirely common thing that happens, considering how long many backups
> take...) and it does so in a relatively reasonable way while also
> allowing concurrent backups, which is perhaps a relatively modest
> benefit but isn't the main point of the different API.
that makes me curious about another thing. The output of pg_stop_backup() is to be stored. Otherwise the backup is useless. So far, so good. But what if the server crashes in the middle of the backup and pg_stop_back() hence is never reached? In this case, it obviously does not create any output.
Ok, you usually start the server, the database does a crash recovery and opens. Then, some time later, you do the usual backup and all is well. This is like 99.999% of all cases.
But what if you need to restore to the latest transaction while the database was running in backup mode during which the crash occurred. How does that work if no pg_stop_backup() output exists? Did I miss something here?
Cheers,
Paul
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: paul.foerster@gmail.com, sfrost@snowman.net, magnus@hagander.net, ken.l.wolff@lmco.com
Subject: Re: Netapp SnapCenter
In-Reply-To: <F3685BE9-6742-4E76-B79D-A89BC115F9CD@gmail.com>
References: <d50941e9fdbf45dba528ba2b7ee9cb58@lmco.com> <4D23B288-6A0B-4BDB-A723-FC47F2E832C7@gmail.com> <CABUevEyBG1+kKiT7wuSZ5OJ0WAjYztZDr2_pDe5ZivbEuU3cCg@mail.gmail.com> <2C6D03C3-CFF0-4F14-BA83-A2809BA29196@gmail.com> <20200618192642.GH6680@tamriel.snowman.net> <D737C052-464D-423B-887F-F322D1B44109@gmail.com> <20200619160248.GI6680@tamriel.snowman.net> <064CCB04-4279-48F1-AF1A-1C3036843350@gmail.com> <CABUevEwUCkjgq1pWnXpiNbgJ+oGaBU7+_kjM6Rps1HnOoUGN6w@mail.gmail.com> <D0D2ED86-87F4-4F7A-B0B1-FFE14EB3D65E@gmail.com> <20200622053610.GB3125@tamriel.snowman.net> <F3685BE9-6742-4E76-B79D-A89BC115F9CD@gmail.com>
* 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