Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK4VT-0002tA-8p for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2020 18:23:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jK4VR-0005C8-HY for pgsql-hackers@arkaria.postgresql.org; Thu, 02 Apr 2020 18:23:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK4VR-0005C1-A4 for pgsql-hackers@lists.postgresql.org; Thu, 02 Apr 2020 18:23:57 +0000 Received: from new3-smtp.messagingengine.com ([66.111.4.229]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jK4VK-0005XK-Fd for pgsql-hackers@postgresql.org; Thu, 02 Apr 2020 18:23:56 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 7F6105802E5; Thu, 2 Apr 2020 14:23:48 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Thu, 02 Apr 2020 14:23:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=ufp3V8DCHIisVxg7S9tH/FPQzYP k3nQ3aJis+L1lwOU=; b=LN5qGrC7LAG4Jr+9NXNm0Rc0VhU6mdVlLMNX6HGvA7X Qb+iyg1q3HifnMZlE+yewtjYEebpabbQdfe1aMj2IwMfg0y5G4FnxirAz5YhF9Lw 9qRYmma8PycDqei/PkpUYQgv+CZzbMBfG4yenmVqCknbZLL4qCyaANNBRaDXmuC8 yGq8gjosPT72tVVstbZQP91Cby74GzpLiCxRHZM7M+tC39KCY16DBI4ne7Hek7Oa jjufMwM+2s3mWVMXJl/2brBcRFzgiDMsCcuBMOGszQ5CwrQ3aunDYDN2gWpTaUXr w0bWjxAunbtYEmW92iYItlozxzgUkdbT2xk+dtM+POQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=ufp3V8 DCHIisVxg7S9tH/FPQzYPk3nQ3aJis+L1lwOU=; b=p+Pu+C8z3T2+yBu4X0/OCv BHuT0oTJy1Ku9cu29JcDRAGIFVyjTVqgMrkKUfVf6SzyzN3L0ar1aDVS9pRr1GB9 N8bA9UtuNkhDDoQEs2NfbrKRcWXTuNGZOJdh0Tx3wPvE7LFAdaz727q/PXL8EQ3a 7dsTXNQw4bAZbZnQkH9e0yxCIfHGwslQrgy1V/KaNvd5Q5yQxPwhaRP0+L/rxIZS 2hdOHFb0UnEMdctDlF634m92PdzKisW7HTISVkG3i7wUEhUrd2nC7NiIwoeZxy+5 NPbNqOrIkQ0zhPz6s029GIJ6JpjaHP4lTRfnFZuURLp2uEmzH5drD9Eo6fg1TsNA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrtdeggdduudekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkphepie ejrdduiedtrddvudejrddvhedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghm pehmrghilhhfrhhomheprghnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 0B53D3280067; Thu, 2 Apr 2020 14:23:47 -0400 (EDT) Date: Thu, 2 Apr 2020 11:23:46 -0700 From: Andres Freund To: Robert Haas Cc: David Steele , Noah Misch , Stephen Frost , Amit Kapila , Suraj Kharage , tushar , Rajkumar Raghuwanshi , Rushabh Lathia , Tels , Andrew Dunstan , PostgreSQL Hackers , Jeevan Chalke , vignesh C Subject: Re: backup manifests Message-ID: <20200402182346.6iffoadxu2hsbi2s@alap3.anarazel.de> References: <20200330020814.nspra4mvby42yoa4@alap3.anarazel.de> <20200330185944.42bxysvem6b757ew@alap3.anarazel.de> <20200331225034.odt3l2w4h3dr6ggk@alap3.anarazel.de> <20200402172318.3kvfrrewxmemzpia@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-04-02 14:16:27 -0400, Robert Haas wrote: > On Thu, Apr 2, 2020 at 1:23 PM Andres Freund wrote: > > I suspect its possible to control the timing by preventing the > > checkpoint at the end of recovery from completing within a relevant > > timeframe. I think configuring a large checkpoint_timeout and using a > > non-fast base backup ought to do the trick. The state can be advanced by > > separately triggering an immediate checkpoint? Or by changing the > > checkpoint_timeout? > > That might make the window fairly wide on normal systems, but I'm not > sure about Raspberry Pi BF members or things running > CLOBBER_CACHE_ALWAYS/RECURSIVELY. I guess I could try it. You can set checkpoint_timeout to be a day. If that's not enough, well, then I think we have other problems. > > FWIW, the only check I'd really like to see in this release is the > > crosscheck with the files length and the actually read data (to be able > > to disagnose FS issues). > > Not sure I understand this comment. Isn't that a subset of what the > patch already does? Are you asking for something to be changed? Yes, I am asking for something to be changed: I'd like the code that read()s the file when computing the checksum to add up how many bytes were read, and compare that to the size in the manifest. And if there's a difference report an error about that, instead of a checksum failure. I've repeatedly seen filesystem issues lead to to earlier EOFs when read()ing than what stat() returns. It'll be pretty annoying to have to debug a general "checksum failure", rather than just knowing that reading stopped after 100MB of 1GB. Greetings, Andres Freund