Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eB2cz-0004NW-IZ for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Nov 2017 17:53:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eB2cz-0006X6-3k for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Nov 2017 17:53:05 +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 1eB2cx-0006Sw-4I; Sat, 04 Nov 2017 17:53:03 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eB2cq-0007Vo-CL; Sat, 04 Nov 2017 17:53:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 159BD20AFE; Sat, 4 Nov 2017 13:52:55 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sat, 04 Nov 2017 13:52:55 -0400 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=7/QJzayFu+gNFjkKPQjUDQczWq06P QDobBcRvvebEBw=; b=bY3l2MUIgQ0D5Z/f8JMZVmAYMcGueW4kLN0xh4ldD6qWs LWyueIXWv932zTPSiaFTgQWOOyc9pgnmyT/0IURAzoAtNK4doBQjsU0TpLrwPA1T JL3CcoQYwoW22Gh1DBAK1ZG/2taSrIpipk7Wq30jkywQtvW8UftBuwflhe48eq7R ZFIBhEn/5n1TOC2WySHdFOqqUszxcQQONRcibyzmqtCGtXS3T1RKUy/tHjJKqwic nyb5GLrogtzlC+CcaFSqJyjQgvvfGj5GIzzoyzpGbyAz78dvRQMOgZ6awu+ljbX4 51NN/0x7imdYmtko37CE/SMcFP63Y6hsOEKLNh5bg== X-ME-Sender: Received: from intern.anarazel.de (unknown [88.128.80.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 61E717E404; Sat, 4 Nov 2017 13:52:53 -0400 (EDT) Date: Sat, 4 Nov 2017 10:52:42 -0700 From: Andres Freund To: Peter Geoghegan Cc: Alvaro Herrera , "Wood, Dan" , pgsql-committers@postgresql.org, "Wong, Yi Wen" , Michael Paquier , Robert Haas , Tom Lane , pgsql-hackers@postgresql.org Subject: Re: [COMMITTERS] pgsql: Fix freezing of a dead HOT-updated tuple Message-ID: <20171104175241.se6efntjsukcxi4b@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171104131500.w7enyo7olxk7ygca@alap3.anarazel.de> 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-04 06:15:00 -0700, Andres Freund wrote: > The current testcase, and I think the descriptions in the relevant > threads, all actually fail to point out the precise way the bug is > triggered. As e.g. evidenced that the freeze-the-dead case appears to > not cause any failures in !assertion builds even if the bug is present. Trying to write up tests reproducing more of the issues in the area, I think I might have found a third issue - although I'm not sure how practically relevant it is: When FreezeMultiXactId() decides it needs to create a new multi because the old one is below the cutoff, that attempt can be defeated by the multixact id caching. If the new multi has exactly the same members the multixact id cache will just return the existing multi with the same members. The cache will routinely be primed from the lookup of its members. I'm not yet sure how easily this can be hit in practice, because commonly the multixact horizon should prevent a multi with all its members living from being below the horizon. I found a situation where that's not the case with the current bug, but I'm not sif that can happen otherwise. 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