pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Thorsten Schöning <tschoening@am-soft.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Do results of pg_start_backup work without WAL segments created during backup?
Date: Mon, 8 Jul 2019 07:31:03 -0600
Message-ID: <0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com> (raw)
In-Reply-To: <141463941.20190708151025@am-soft.de>
References: <488977827.20190708115707@am-soft.de>
	<CABUevEynTpkvkdC3vLAF4o6_j5DbRO=FKOcH2zQ2vsyFNv2JLg@mail.gmail.com>
	<16210428054.20190708125624@am-soft.de>
	<e3e7d102-5d9c-fea3-cfd4-e25c296fcd1a@pgmasters.net>
	<141463941.20190708151025@am-soft.de>

> 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 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.







view thread (10+ messages)  latest in thread

Message-ID: <0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com>
Permalink:  ../0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com/
Also on:    postgresql.org/message-id/0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com

 · 

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 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-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, tschoening@am-soft.de
  Subject: Re: Do results of pg_start_backup work without WAL segments created during backup?
  In-Reply-To: <0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com>
  References: <488977827.20190708115707@am-soft.de> <CABUevEynTpkvkdC3vLAF4o6_j5DbRO=FKOcH2zQ2vsyFNv2JLg@mail.gmail.com> <16210428054.20190708125624@am-soft.de> <e3e7d102-5d9c-fea3-cfd4-e25c296fcd1a@pgmasters.net> <141463941.20190708151025@am-soft.de> <0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.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