Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eN33t-0003EX-M1 for pgsql-committers@arkaria.postgresql.org; Thu, 07 Dec 2017 20:46:29 +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 1eN33t-0001eW-8B for pgsql-committers@arkaria.postgresql.org; Thu, 07 Dec 2017 20:46:29 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eN33s-0001eJ-Vn; Thu, 07 Dec 2017 20:46:29 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eN33o-0005OZ-Se; Thu, 07 Dec 2017 20:46:27 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 007CB20A54; Thu, 7 Dec 2017 15:46:23 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Thu, 07 Dec 2017 15:46:24 -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=gQ3I3Zht61cYCYI81ESv0MOyYIYO6 UCKOdpAxMtdwhw=; b=Byuf5AB/MviYd3enQVhhbpo03VNn7g+nbMmft+h9OH5O0 wQmxpM7wmz6psGdOOREyP8D+gxi57FvwCKlz8MA6OUTCmQd7yso1+gSG1ZPdeI6S lETQPvkZGVBGjF2cQSUUoP3C6Rj/ju+4h8aKvLIPFCiNgQFZrlW+z3R+QSf9XXS0 3AhfYd+b7SVqnOQzyQi2CHxyguGctkAPdRdalAQn2gCCmcA0+AzglJ3h8pSTjntw VjA+LUxYLQFxXzyN+xbOaCB618hs8sQ+9XC9HuaqopNIMB81SnerVqKJoL369BA8 kVvpAOqjV0aLUC/iszoCWFU4ziNExskLfo52EB7Ew== X-ME-Sender: Received: from intern.anarazel.de (unknown [172.56.42.37]) by mail.messagingengine.com (Postfix) with ESMTPA id ACA667E7AD; Thu, 7 Dec 2017 15:46:23 -0500 (EST) Date: Thu, 7 Dec 2017 12:46:22 -0800 From: Andres Freund To: Alvaro Herrera Cc: "Wood, Dan" , Peter Geoghegan , pgsql-committers@postgresql.org, "Wong, Yi Wen" , Michael Paquier , Robert Haas , Tom Lane , pgsql-hackers@postgresql.org Subject: Re: [HACKERS] [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple Message-ID: <20171207204622.2gxjhz7zepca5dbc@alap3.anarazel.de> References: <20171207202243.pmxwjm5wvz5lp6j6@alap3.anarazel.de> <20171207204156.hzoladdacxjpz4rz@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171207204156.hzoladdacxjpz4rz@alvherre.pgsql> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2017-12-07 17:41:56 -0300, Alvaro Herrera wrote: > > > Looking at 0002: I agree with the stuff being done here. I think a > > > couple of these checks could be moved one block outerwards in term of > > > scope; I don't see any reason why the check should not apply in that > > > case. I didn't catch any place missing additional checks. > > > > I think I largely put them into the inner blocks because they were > > guaranteed to be reached in those case (the horizon has to be before the > > cutoff etc), and that way additional branches are avoided. > > Hmm, it should be possible to call vacuum with a very low freeze_min_age > (which sets a very recent relfrozenxid), then shortly thereafter call it > with a large one, no? So it's not really guaranteed ... Fair point! - Andres