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 1mgWz4-0002aI-Nu for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Oct 2021 18:52:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mgWz3-0001Oz-Jq for pgsql-bugs@arkaria.postgresql.org; Fri, 29 Oct 2021 18:52:09 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgWz3-0001Oq-Cf for pgsql-bugs@lists.postgresql.org; Fri, 29 Oct 2021 18:52:09 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mgWz1-00061s-6t for pgsql-bugs@lists.postgresql.org; Fri, 29 Oct 2021 18:52:08 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id C85323201CFD; Fri, 29 Oct 2021 14:52:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 29 Oct 2021 14:52:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=w+O695SQqF0hRo/gYBwF27JzteCo4zT2VWDIw0iQX5M=; b=TSFf5tNN skpIOyzyetf3ESavjGYKScTqSZdrc3Ctf4gR2S/mKSORQAEmnfbc4gZrYRQuWJE9 WI5BV+7RcBKUVzpHthwlE9bzls7jZWOgNfqNWIvO2qqKLK1MjBGa0NxKnW4RzziB fnwUSPbpVJJZuYDQoeCPCXzPMv+esGmtUFbM5Yhs1n+e8DyhRb6f8lLWFKV9pZnH 4R8yvJw7pZezt5RlhIiD57mPIQSpPQb5B4xAN9+vu5DULFjwbC3KKW6UGuRWHcTT of0JTTwx4yhfAr06d0X/g8MUHbjIOnF6DaBWj7fr+Q8Ynqsma7kfEJnmAQCNojwC 84YfRee3/6vcNw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvdeghedguddvhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepudejveejffejveduudetvdekieeuiedtvdeileefkeev jedufeeguedvjefhueelnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 29 Oct 2021 14:52:04 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CD7432A077C; Fri, 29 Oct 2021 15:52:02 -0300 (-03) Date: Fri, 29 Oct 2021 15:52:02 -0300 From: Alvaro Herrera To: Peter Geoghegan Cc: Kamigishi Rei , Andres Freund , Andrew Gierth , PostgreSQL mailing lists , Thomas Munro Subject: Re: BUG #17245: Index corruption involving deduplicated entries Message-ID: <202110291852.t6nxvmnhplnn@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 2021-Oct-29, Peter Geoghegan wrote: > However, this relation is a B-Tree index, where TIDs/page offset > numbers are not stable at all. > > Almost all individual index tuple inserts onto a B-Tree page put the > new index tuple "between" existing index tuples. This will "shift" > whatever index tuples are to the right of the position of the new > tuple. Bah, of course. Sorry for the noise. -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/ "Puedes vivir sólo una vez, pero si lo haces bien, una vez es suficiente"