Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMJ01-0003Ks-Uh for pgsql-hackers@arkaria.postgresql.org; Thu, 02 May 2019 21:12:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMIzy-0002PW-Gy for pgsql-hackers@arkaria.postgresql.org; Thu, 02 May 2019 21:12:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMIzy-0002PP-5C for pgsql-hackers@lists.postgresql.org; Thu, 02 May 2019 21:12:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMIzv-0006nq-1U for pgsql-hackers@lists.postgresql.org; Thu, 02 May 2019 21:12:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x42LC3gg011238; Thu, 2 May 2019 17:12:03 -0400 From: Tom Lane To: Andres Freund cc: Michael Paquier , Postgres hackers Subject: Re: REINDEX INDEX results in a crash for an index of pg_class since 9.6 In-reply-to: <20190502210253.lt4p46dvllxarajg@alap3.anarazel.de> References: <27459.1556762513@sss.pgh.pa.us> <20190502021913.axyvyyyw5547swy5@alap3.anarazel.de> <25661.1556808540@sss.pgh.pa.us> <20190502153107.o5zadep4ehebzoqy@alap3.anarazel.de> <4870.1556811688@sss.pgh.pa.us> <20190502155612.ep5wqyninmkrz6uh@alap3.anarazel.de> <5531.1556812964@sss.pgh.pa.us> <2157.1556816395@sss.pgh.pa.us> <20190502172851.klckhiyukqd3bd2t@alap3.anarazel.de> <10650.1556830451@sss.pgh.pa.us> <20190502210253.lt4p46dvllxarajg@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 02 May 2019 14:02:53 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11236.1556831523.1@sss.pgh.pa.us> Date: Thu, 02 May 2019 17:12:03 -0400 Message-ID: <11237.1556831523@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andres Freund writes: > On 2019-05-02 16:54:11 -0400, Tom Lane wrote: >> How do you feel about the other patch to rejigger the order of operations >> in CommandCounterIncrement? I think that's a bug, but it's probably >> noncritical for most people. What I'm leaning towards for that one is >> waiting till after the minor releases, then pushing it to all branches. > I've not yet have the mental cycles to look more deeply into it. I > thought your explanation why the current way is wrong made sense, but I > wanted to look a bit more into how it came to be how it is now. Well, I wrote that code, and I can say pretty confidently that this failure mode just didn't occur to me at the time. > I agree > that pushing after the minors would make sense, it's too subtle to go > for it now. It is subtle, and given that it's been there this long, I don't feel urgency to fix it Right Now. I think we're already taking plenty of risk back-patching the REINDEX patch :-( regards, tom lane