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 1rUWGI-00BPJY-EN for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jan 2024 18:21:38 +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 1rUWGH-00GWjx-A6 for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Jan 2024 18:21:37 +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 1rUWGH-00GWji-0m for pgsql-hackers@lists.postgresql.org; Mon, 29 Jan 2024 18:21:37 +0000 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rUWGE-004Nm8-8R for pgsql-hackers@lists.postgresql.org; Mon, 29 Jan 2024 18:21:36 +0000 Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-36380a1017dso3329655ab.2 for ; Mon, 29 Jan 2024 10:21:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706552492; x=1707157292; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=mHL7rQ3l8wjRnQj4u7zpnPTnlJU5E2J48Xs/ZMyQdCw=; b=BFhjcqnkXwCiu36bS5iK217mk9RQz9hT2iUftsGS+7mZTwKZ93YmVxlAVXkULl04pU Uk6lCmoaSQ3UEp9+upOqVgsIYgbVQGp/mKqN8z9V9NoWq0SZCBPMz3kzjwcGQSRjm4H1 FlAOfVqtoS9tGW4Fi5vB70w0LXM66uiE51oBeWkGPMhlSyPNHzTJyOCNuJonJ2kRE2oh giHIAojkQ0zoko7aqlV+J5zMPn8UH4ZbkIWcspqMpJBE5J712BgCQBUulDrxafH1nGhj OsdpXmY9kTDhKr7He5o4QgepfUvwMACdWndUZ9oNsATMXDexfPVmU6qAJfJlVcwct4e1 p7Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706552492; x=1707157292; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=mHL7rQ3l8wjRnQj4u7zpnPTnlJU5E2J48Xs/ZMyQdCw=; b=DiiHMYc9pLwNX6YkbaA2Y+UhKOrkOeVVd1O3+FrHanRV2jkagHd1FB40kCWA+eibeq 52JsQUxwP//jFA5dOc57gZkoOI+oo0tXovpNgFrj/WEBjTE4qD6PAdFb7mIAW+VB7Bvj a8GKv4xPGpvs7GlHOwFuwxeE2/1LZ2OTAYYaZmm4cSXjF8Md/FZaKhPvdDvKpnBXqPbM MxCe35oWHHTYsZxtbalhNwLMOOlIj9LKtqa2xi6LwP+SLH6zcGTKZrfv0QvJGiHI/MhD hNrJvs+zeXQ26X/ln97Ty5+MwY7sRJ/ICdbsB+GuNPv7s1vkH/luQo9aMyhOTk3hqx/y SrKw== X-Gm-Message-State: AOJu0YyXVRSUvOR42GWS14PikIIDOizzUsZMD17Ne6oQQNiK86tF1vgi aN1ojwhNDK9vDhFuzP/lACvo+S+yPLtuFxf5NyEeOHiefTNvEylopqrYWO42 X-Google-Smtp-Source: AGHT+IEM0VskBHYA6yDuUuZHdWenOnXYp4m3baKi1PHXyl7LQa/ZeUv2LTej8mrxGoaoryff7O14IQ== X-Received: by 2002:a05:6e02:20c5:b0:363:74dc:8f5e with SMTP id 5-20020a056e0220c500b0036374dc8f5emr6904717ilq.0.1706552492242; Mon, 29 Jan 2024 10:21:32 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id bs11-20020a056e02240b00b0036385c93e5esm446096ilb.56.2024.01.29.10.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 10:21:31 -0800 (PST) Date: Mon, 29 Jan 2024 12:21:30 -0600 From: Nathan Bossart To: Alexander Lakhin Cc: Robert Haas , Matthias van de Meent , PostgreSQL Hackers Subject: Re: cleanup patches for incremental backup Message-ID: <20240129182130.GA3670200@nathanxps13> References: <20240124170846.GA2643050@nathanxps13> <8aed364e-f572-4561-b4fc-ff149067b670@gmail.com> <20240127163109.GA3047116@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240127163109.GA3047116@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Jan 27, 2024 at 10:31:09AM -0600, Nathan Bossart wrote: > On Sat, Jan 27, 2024 at 11:00:01AM +0300, Alexander Lakhin wrote: >> I'm discouraged by "\n1" in the file name and in the >> "examining summary..." message. >> regress_log_002_blocks from the following successful test run on the same >> sungazer node contains: >> [15:21:58.924](0.106s) # examining summary for TLI 1 from 0/155BAE0 to 0/155E750 >> [15:21:58.925](0.001s) ok 1 - WAL summary file exists > > Ah, I think this query: > > SELECT tli, start_lsn, end_lsn from pg_available_wal_summaries() > WHERE tli = $summarized_tli AND end_lsn > '$summarized_lsn' > > is returning more than one row in some cases. I attached a quick sketch of > an easy way to reproduce the issue as well as one way to fix it. The buildfarm just caught a failure with the new logging in place: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=calliphoridae&dt=2024-01-29%2018%3A09%3A10 I'm not totally sure my "fix" is correct, but I think this does confirm the theory. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com