Re: Do results of pg_start_backup work without WAL segments createdduring backup? - Mailing list pgsql-admin

From Scott Ribe
Subject Re: Do results of pg_start_backup work without WAL segments createdduring backup?
Date
Msg-id 0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com
Whole thread Raw
In response to Re: Do results of pg_start_backup work without WAL segments created during backup?  (Thorsten Schöning <tschoening@am-soft.de>)
List pgsql-admin
> On Jul 8, 2019, at 7:10 AM, Thorsten Schöning <tschoening@am-soft.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
whichmay 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
sequentiallycopying files while they are being modified in a order that is in no way related to the order of copying. 





pgsql-admin by date:

Previous
From: Thorsten Schöning
Date:
Subject: Re: Do results of pg_start_backup work without WAL segments created during backup?
Next
From: David Steele
Date:
Subject: Re: Do results of pg_start_backup work without WAL segments createdduring backup?