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 1qv5s6-0038ie-KO for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Oct 2023 01:06:14 +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 1qv5s4-000uq4-Gh for pgsql-bugs@arkaria.postgresql.org; Tue, 24 Oct 2023 01:06:13 +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 1qv5s4-000upw-7w for pgsql-bugs@lists.postgresql.org; Tue, 24 Oct 2023 01:06:12 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qv5rw-002NLD-AD for pgsql-bugs@lists.postgresql.org; Tue, 24 Oct 2023 01:06:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 39O1616L462250; Mon, 23 Oct 2023 21:06:01 -0400 From: Tom Lane To: Peter Geoghegan cc: Hans Buschmann , Amit Langote , "David G. Johnston" , "pgsql-bugs@lists.postgresql.org" Subject: Re: AW: AW: BUG #18147: ERROR: invalid perminfoindex 0 in RTE with relid xxxxx In-reply-to: References: <18147-6fc796538913ee88@postgresql.org> <2796464.1696525626@sss.pgh.pa.us> <9fdfed847859435e8641e613198be9e3@nidsa.net> <3319880.1696778678@sss.pgh.pa.us> <3c9fe737f6aa4ae9b0dc19bffd97e106@nidsa.net> <408285.1698085850@sss.pgh.pa.us> <411084.1698087308@sss.pgh.pa.us> <458056.1698107313@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Mon, 23 Oct 2023 17:45:39 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <462248.1698109561.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 23 Oct 2023 21:06:01 -0400 Message-ID: <462249.1698109561@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Geoghegan writes: > On Mon, Oct 23, 2023 at 5:28 PM Tom Lane wrote: >>> Separately, I wonder if index_unchanged_by_update should actually just >>> always give the hint with a non-HOT update, regardless of the >>> specifics for each index/its columns -- just like on the v14 branch. >> I'm confused. Wouldn't that be the exact opposite of "unchanged"? > Well, in practice "indexUnchanged = true" means "do bottom-up deletion > if it's the only way to avoid a page split". The justification is that > the incoming tuple is "logically unchanged" (actually it's more > complicated than that, but that's our starting point). But doesn't the need for a non-HOT update show that the tuple *was* changed --- in index-relevant columns, even? Maybe I'm still not understanding exactly what condition we're detecting. regards, tom lane