Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r3g8a-0054Sz-Rk for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Nov 2023 17:26:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r3g8Z-0084Ri-B7 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Nov 2023 17:26:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r3g8Z-0084Ra-20 for pgsql-hackers@lists.postgresql.org; Thu, 16 Nov 2023 17:26:43 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r3g8W-006luq-6m for pgsql-hackers@postgresql.org; Thu, 16 Nov 2023 17:26:42 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id E5FB732009FF; Thu, 16 Nov 2023 12:26:37 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 16 Nov 2023 12:26:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1700155597; x= 1700241997; bh=1ctBogleEglywQnpOxuFyoeBlKjxLG30tJwxJLYuM0Y=; b=V sSwocveN3ToldVfx/vdRlrRRxUpX3Z0hR7jOppKWyjYxx00PFtPCkDWH+rOa43FE oowlryvKkZd8YkcZ2+2JapVQno709qdqf4QAKzQUKQNY0ZqYGFS9Y81zlyF2aAGD XNpNcpmFdn5to75lX7gvEklRjdbwGBNkUiSZV1uHXTeCr6y4AkCX0NnAeUmijWKd pyGY/VDulD+Jbfq/oIYFvxaGCOCD6JXeAQxMdawwgRtm0IZiGv5E7bWITGAt2173 7dR16UqN4dXH7YuOJY7NOUZ1lEnzU+BMxSexJ2niDZQJkv2Djb/Q71aj5hk686Cq TQ4dV/5VbyMobaD55ivfg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrudefkedgleelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 16 Nov 2023 12:26:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1700155593; bh=qgCSycFeZEm6B1F5TrF4Br71mcnHdKZlQCPgicyIpT8=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=RcUxvAsdxHM48zadgtaXFhS8XYq78KY9zjAGGU9QU4hSQwGC4rVui2mI3Sz0dBUdI tbZvbuTMpD+1FNhMAek6X6wnJjXdCZmEzRjI70Dz2/PWzo0VXl+neew/h3Liou8nyk /uzAxWzoYn8pDPXWQteIFoECoA3hAib2w0yB/z7yOaBbPJSsU7Gvyjc/EyXulwU1WH wHy4YSvYmygtE6UuXI5QwF6k7OERqx8kFqE5H+uQA/SQ/fD9phhwy+GN0vlQ43oeJF x6yxQw/43z67oA0DPJCLil4HQQG2+PQyDOTFGSxHEuGh02gSPl/9SoL+n+p2BrYmSV 331rhi3De3Whg== Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id BDF5DDE; Thu, 16 Nov 2023 18:26:33 +0100 (CET) Date: Thu, 16 Nov 2023 18:26:33 +0100 From: Alvaro Herrera To: Robert Haas Cc: Andres Freund , Peter Eisentraut , Dilip Kumar , "pgsql-hackers@postgresql.org" Subject: Re: trying again to get incremental backup Message-ID: <202311161726.qzbi7b7ln6lk@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2023-Nov-16, Robert Haas wrote: > On Thu, Nov 16, 2023 at 5:21 AM Alvaro Herrera wrote: > > I meant code like this > > > > memcpy(&key.rlocator, rlocator, sizeof(RelFileLocator)); > > key.forknum = forknum; > > entry = blockreftable_lookup(brtab->hash, key); > > Ah, I hadn't thought about that. Another way of handling that might be > to add = {0} to the declaration of key. But I can do the initializer > thing too if you think it's better. I'm not sure if there's an > argument that the initializer might optimize better. I think the {0} initializer is good enough, given a comment to indicate why. > > It's not clear to me if WalSummarizerCtl->pending_lsn if fulfilling some > > purpose or it's just a leftover from prior development. I see it's only > > read in an assertion ... Maybe if we think this cross-check is > > important, it should be turned into an elog? Otherwise, I'd remove it. > > I've been thinking about that. One thing I'm not quite sure about > though is introspection. Maybe there should be a function that shows > summarized_tli and summarized_lsn from WalSummarizerData, and maybe it > should expose pending_lsn too. True. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/