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 1rktXx-00GEb2-Gf for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 22:27:34 +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 1rktXv-003jz4-UW for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2024 22:27:32 +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 1rktXv-003jyv-I9 for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2024 22:27:32 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rktXt-004YBM-2Q for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2024 22:27:31 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1dd955753edso12952745ad.1 for ; Thu, 14 Mar 2024 15:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1710455247; x=1711060047; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=crRV9sp0yatJ26Op3HL3PjHVqjG96lRW41cmqv7/NzI=; b=I/PsKWZ1h5/ABOqbyL6i40jOfsEAvBSyf0yqk088IUalXjnSuFR5fTjmTOYrDqkk/U YVTUWW0ap9OnvgnAXgK/rMkKMIqVx0BOYMsMbXZ/E+Bzbui/vzImZsSTjMkXr7ndUwv3 9nFfAFl3uywOPX/28qiBUj4DkPeigSHHz/AHut7Kxq9YTP4GlJw6/Y+tCR3jgIGWePFc zrJcgV37rmT8nvy5nfSvcx3aX/wrHIhAgl4y+c4RUnA/F9Fb34wBDdH5EkfUuoTbn6Bo 0yRQ6fQ7ZztpOpJ/z2i9GcpVpZS66AzhkSdTRTVk/SJUtkFEabSwwFw/PwwZcgAz6n07 wiIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710455247; x=1711060047; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=crRV9sp0yatJ26Op3HL3PjHVqjG96lRW41cmqv7/NzI=; b=uFiBdRGEl7BEKWdSFmCU02qYmI0K0LtOLs/MsRJQdi73qqLzuafVifM36fi1nCAtcO wCkTMZRgMP38eRX2FkdcpBuCca9cPx89Eo2cO7gsLj6hV99usThJ1Yk3vZUsJ0Ko/9uP kyQYNDVLv304qAt52631ZM3r5KM/iqS10oZyF61Cxg7wkjpsUit6CRH98fBqg0BZpE5d 81hzj4oi4z9UKhMro5pF9KEfkrxJnwkkmbxqtchL/qoU8Vm9YPXpXfq/3lCJe82AcX5j 8jPNYIK2mGM/tN4JmlpF2xwYXKfKqI5RmxR5yJQlwAtPDNZZ0lFQ9MFBhgEH4tQaqAFX X+7Q== X-Forwarded-Encrypted: i=1; AJvYcCVia/AgSIBWy8woD7zBu5p5xSBkfXlK0zXVVeoq5Z8RLoGFftUWftxETkfMCJmpYGZMWcQLYeBzWBDqamt32z5aKS9+mVQTppoPbnocqrtg7voU X-Gm-Message-State: AOJu0Yyjd5EC2fIkaKBAVN4OxAlHq454pBfi+XSHGVUuuUmFGxW/ZVaT gS8jRpGMtEoEa1ain56EWI9S380xdfSBNybJrovjlqxvoB9mwsBCrHQj9cuDUw== X-Google-Smtp-Source: AGHT+IGp3GcM/7n23PPqjdk6WAWZRRaqtw1znefe4hbJcRkyLWnKmXVKI+FaSgrVT6Tk3W76jAGgSQ== X-Received: by 2002:a17:903:26c6:b0:1dd:6ac5:b87c with SMTP id jg6-20020a17090326c600b001dd6ac5b87cmr1193408plb.51.1710455246827; Thu, 14 Mar 2024 15:27:26 -0700 (PDT) Received: from jeff-laptop.lan (c-76-102-242-158.hsd1.ca.comcast.net. [76.102.242.158]) by smtp.gmail.com with ESMTPSA id m8-20020a170902db0800b001dcdf2576c6sm2283514plx.3.2024.03.14.15.27.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 15:27:26 -0700 (PDT) Message-ID: <78846bd91600d804e6befa72c4a6ff4e7c522410.camel@j-davis.com> Subject: Re: Proposal to add page headers to SLRU pages From: Jeff Davis To: "Li, Yong" Cc: Aleksander Alekseev , PostgreSQL Hackers , "Bagga, Rishu" , Robert Haas , "Debnath, Shawn" , Andrey Borodin , "Shyrabokau, Anton" Date: Thu, 14 Mar 2024 15:27:24 -0700 In-Reply-To: <51E39019-D805-4EB9-A814-EBC63C43223C@ebay.com> References: <162841701969726@mail-sendbernar-corp-main-71.iva.yp-c.yandex.net> <76110763-F29E-469E-AA62-2EED17875BB7@ebay.com> <1404E248-F2B2-48BC-9B5E-BB318F3BE583@amazon.com> <628CFBEF-DF56-4D9A-A2F1-0A417848B6B6@ebay.com> <359BB3DC-A174-43AF-A9BA-064CB6D2C7E9@ebay.com> <48CDC195-5030-4426-9E02-931D8AE14DF7@ebay.com> <4B689BA2-270F-4B26-AAA2-65BB17C03AC4@ebay.com> <3ee88744547f6865fe2f48b2b6f058a50796cb91.camel@j-davis.com> <51E39019-D805-4EB9-A814-EBC63C43223C@ebay.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2024-03-11 at 10:01 +0000, Li, Yong wrote: > - The clog LSN group has been brought back. > =C2=A0 Now the page LSN on each clog page is used for honoring the write- > ahead rule > =C2=A0 and it is always the highest LSN of all the LSN groups on the page= . > =C2=A0 The LSN groups are used by TransactionIdGetStatus() as before. I like where this is going. =C3=81lvaro, do you still see a problem with this approach? > - New comments have been added to pg_upgrade to mention the SLRU > =C2=A0 page header change as the reason for upgrading clog files. That seems reasonable, but were any alternatives discussed? Do we have consensus that this is the right thing to do? And if we use this approach, is there extra validation or testing that can be done? Regards, Jeff Davis