Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCx0i-0007Vg-Ce for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Nov 2017 00:17:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eCx0h-0002aA-Q0 for pgsql-hackers@arkaria.postgresql.org; Fri, 10 Nov 2017 00:17:27 +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 1eCx0f-0002YR-79; Fri, 10 Nov 2017 00:17:25 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eCx0b-0006Nr-Ho; Fri, 10 Nov 2017 00:17:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id EA71320C08; Thu, 9 Nov 2017 19:17:19 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 09 Nov 2017 19:17:19 -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=VjXnQINcyxA5M1ASmJt9AUQcSO0TX yYmFPb2Esh5xoU=; b=mfT2jD6ZLZJbz/vbVW9YDmMbaaM2GoNnqRoZEgUomtjmd hc3Aa0cTVSO5El7tft6STFi4EuRAXFwfxYlZhgSDTOHJFJAxGucAPI+keqOqXPqu J9ZrdqNavvT/tVJtorLslm5EvYlfieZqsuC8906sPOBxCUqXinMCJ8XflKy3msDM Cg7zBKG9sCyzCyQwLxtJTScca33pG1iAR31Fmbhg6vln1rPGWZxAEoVjyxS62+hA iHJnvaxFEGEqPBt4UQ6NUF4sQWj/j3hbqnqkFGqUiXeicr3apX6LDnv9orb7D/hw yPQOX0T3lFBVk2R8IQmqagOTD2NHVnVi7QpqsHlVA== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id AFA9E7E804; Thu, 9 Nov 2017 19:17:19 -0500 (EST) Date: Thu, 9 Nov 2017 16:17:18 -0800 From: Andres Freund To: Peter Geoghegan Cc: Alvaro Herrera , "Wood, Dan" , pgsql-committers , "Wong, Yi Wen" , Michael Paquier , Robert Haas , Tom Lane , PostgreSQL Hackers Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple Message-ID: <20171110001718.rpgx4lf6xxi4ge3l@alap3.anarazel.de> References: <20171102112019.33wb7g5wp4zpjelu@alap3.anarazel.de> <20171102124947.hshl7znx6ixy62pf@alvherre.pgsql> <20171102130551.i2w33sqdw3bdvetn@alap3.anarazel.de> <20171103145330.5ycjoje5s6lfwxps@alap3.anarazel.de> <20171103193659.GA3404@marmot> <20171104131500.w7enyo7olxk7ygca@alap3.anarazel.de> <20171109222431.qwj6dtl5chumc6lt@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 2017-11-09 16:02:17 -0800, Peter Geoghegan wrote: > > What I'm currently wondering about is how much we need to harden > > postgres against such existing corruption. If e.g. the hot chains are > > broken somebody might have reindexed thinking the problem is fixed - but > > if they then later vacuum everything goes to shit again, with dead rows > > reappearing. > > I don't follow you here. Why would REINDEXing make the rows that > should be dead disappear again, even for a short period of time? It's not the REINDEX that makes them reappear. It's the second vacuum. The reindex part was about $user trying to fix the problem... As you need two vacuums with appropriate cutoffs to hit the "rows revive" problem, that'll often in practice not happen immediately. > Actually, on second thought, I take that back -- I don't think that > REINDEXing will even finish once a HOT chain is broken by the bug. > IndexBuildHeapScan() actually does quite a good job of making sure > that HOT chains are sane, which is how the enhanced amcheck notices > the bug here in practice. I think that's too optimistic. Greetings, Andres Freund -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers