Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePvEy-0008HU-TX for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Dec 2017 19:01:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePvEy-0006ZQ-As for pgsql-hackers@arkaria.postgresql.org; Fri, 15 Dec 2017 19:01:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ePvBY-000198-QH; Fri, 15 Dec 2017 18:58:16 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ePvBW-0008L5-7N; Fri, 15 Dec 2017 18:58:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id EF92920A72; Fri, 15 Dec 2017 13:58:12 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Fri, 15 Dec 2017 13:58:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; bh=X1JcketVriPC68qQkxFsC/hnYeL9r 3ocoW9v0iCVqSo=; b=AAQ+rCZuTBp3ovQ3xsiro5IzFtA3V/I1nWmAASUMueYWB zsZoN70CohJQDpIXo7fOhO4491hbVxpHtfXbrGu9PY+0wp4z6SIShwD+tR6gYI8M RBgCr2r6VSMtsoyAHkw5CXGdy/gGjX/X9VNJRgPhbn6cLM+ci6fpYAOqADa0vP9p ooRI65rRRDkJRDOiYn3T8e21VAjC+fUvnWd8gqmI9IHyt66q6LP2ewdSiiIVgbMo HXQDUTD0Ql6eh5S91rU6/WItyO5RoXmWiVazXwzqGzcEtXxYy7sfKuwXXDbggg4w o2YnKqjFkZ933Vbb6uzrGMN+NblXkn2H0EBu99M9w== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id A43D2243B8; Fri, 15 Dec 2017 13:58:12 -0500 (EST) Date: Fri, 15 Dec 2017 10:58:11 -0800 From: Andres Freund To: Peter Geoghegan Cc: Alvaro Herrera , "Wood, Dan" , pgsql-committers@postgresql.org, "Wong, Yi Wen" , Michael Paquier , Robert Haas , Tom Lane , PostgreSQL Hackers Subject: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple Message-ID: <20171215185811.zrc55yv4kvkp7hxw@alap3.anarazel.de> References: <20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de> <20171102124947.hshl7znx6ixy62pf@alvherre.pgsql> <20171102130551.i2w33sqdw3bdvetn@alap3.anarazel.de> <20171103145330.5ycjoje5s6lfwxps@alap3.anarazel.de> <20171114030341.movhteyakqeqx5pm@alap3.anarazel.de> <20171215010029.3dxx56vjlymudvwo@alap3.anarazel.de> <20171215023059.oeyindn57oeis5um@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017-12-15 10:46:05 -0800, Peter Geoghegan wrote: > On Thu, Dec 14, 2017 at 6:30 PM, Andres Freund wrote: > > Pushed this way. Moved some more relfrozenxid/relminmxid tests outside > > of the cutoff changes, polished some error messages. > > > > > > Alvaro, Michael, Peter, and everyone else I'd greatly appreciate if you > > could have a look at the backported version, just about everything but > > v10 had conflicts, some of them not insubstantial. > > I have one minor piece of feedback on the upgrading of assertions to > ereport()s with ERRCODE_DATA_CORRUPTION: It would be nice if you could > upgrade the raw elog() "can't happen" error within > IndexBuildHeapRangeScan() to be an ereport() with > ERRCODE_DATA_CORRUPTION. I'm referring to the "failed to find parent > tuple for heap-only tuple" error, which I think merits being a real > user-visible error, just like the relfrozenxid/relminmxid tests are > now. As you know, the enhanced amcheck will sometimes detect > corruption due to this bug by hitting that error. I'm not opposed to that, it just seems independent from this thread. Not sure I really want to go around and backpatch such a change, that code has changed a bit between branches. Happy to do so on master. Greetings, Andres Freund