Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkTjd-0000zU-97 for pgsql-admin@arkaria.postgresql.org; Mon, 08 Jul 2019 13:31:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hkTjb-0007Yc-Ut for pgsql-admin@arkaria.postgresql.org; Mon, 08 Jul 2019 13:31:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkTjb-0007YK-Ly for pgsql-admin@lists.postgresql.org; Mon, 08 Jul 2019 13:31:11 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hkTjZ-0000Q8-CT for pgsql-admin@postgresql.org; Mon, 08 Jul 2019 13:31:11 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id DC89EA0BEF; Mon, 8 Jul 2019 13:31:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at emo05-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo05-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qr4Nk-86yo_i; Mon, 8 Jul 2019 13:31:06 +0000 (UTC) Received: from [192.168.2.16] (unknown [8.39.228.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id B1BA9A0BFB; Mon, 8 Jul 2019 13:31:04 +0000 (UTC) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Do results of pg_start_backup work without WAL segments created during backup? From: Scott Ribe In-Reply-To: <141463941.20190708151025@am-soft.de> Date: Mon, 8 Jul 2019 07:31:03 -0600 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: <0B7B3FE0-6B3C-45BB-9BE5-5C3731603D85@elevated-dev.com> References: <488977827.20190708115707@am-soft.de> <16210428054.20190708125624@am-soft.de> <141463941.20190708151025@am-soft.de> To: =?utf-8?Q?Thorsten_Sch=C3=B6ning?= X-Mailer: Apple Mail (2.3445.104.11) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Jul 8, 2019, at 7:10 AM, Thorsten Sch=C3=B6ning = wrote: >=20 > "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=20 > 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.