Re: Do results of pg_start_backup work without WAL segments created during backup?

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: Thorsten Schöning <tschoening(at)am-soft(dot)de>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Do results of pg_start_backup work without WAL segments created during backup?
Date: 2019-07-08 13:31:03
Message-ID: 0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Jul 8, 2019, at 7:10 AM, Thorsten Schöning <tschoening(at)am-soft(dot)de> wrote:
>
> "since the last checkpoint": Missing WAL-segments mean a loss of data
> only. It doesn't mean that formerly "checkpointed" data gets magically
> broken, else crash recovery wouldn't work like described in the docs.

Not true. The database files are probably written to between checkpoints, and certainly during subsequent checkpoints which may occur during the backup.

> I don't see how WAL-archives created between pg_start- and
> pg_stop_backup are any different to later ones.

They are necessary to straighten out changes that were occurring during the backup.

> If I backup some VM using snapshots, I don't
> necessarily care about the changes made within the VM during the
> backup as well.

A snapshot is an entirely different thing, since it's an atomic grab of state at one point, very different than sequentially copying files while they are being modified in a order that is in no way related to the order of copying.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message David Steele 2019-07-08 13:54:43 Re: Do results of pg_start_backup work without WAL segments created during backup?
Previous Message Thorsten Schöning 2019-07-08 13:10:25 Re: Do results of pg_start_backup work without WAL segments created during backup?