Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8C8E-0002FG-IJ for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Jan 2022 02:15:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n8C8D-0002lc-DJ for pgsql-bugs@arkaria.postgresql.org; Fri, 14 Jan 2022 02:15:57 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8C8B-0002lQ-NB for pgsql-bugs@lists.postgresql.org; Fri, 14 Jan 2022 02:15:57 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n8C88-0001Yc-1b for pgsql-bugs@lists.postgresql.org; Fri, 14 Jan 2022 02:15:55 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id ED11C5C01B2; Thu, 13 Jan 2022 21:15:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Thu, 13 Jan 2022 21:15:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=3my7Nh7PFS9DlAtYdYB585kkMLZ QlLSpCW1wAmf996c=; b=TJppd1xjR5JD91MZOt9SbBDs5sHO7QuBxObFciWzpYm qTh3Hnr4aAGMEzb2v4laTtM305N7zZpzetBHN9EpA9oEY52ub3YtLwx32qmWcsXj oydkt94jDi5jCt/QoV8MKKiyqSF3Pre0Sn/uzmFUll5d8pyElvTluqFof8XC1ozS 6RfMgvFPPxCDfGa/rM3NjVmGIELWkIWt1QRShhskuWpCUiaLXWmcObLs9X7kmbFi IT2GWkjFenZQIIMA27BdQuM2SemNsUIfj61uVX0eW31rgMUon+iTuATmunwuCb19 sao33N/VKLiZxgc5uJmTGLeqACiFMK9BE2OFwPe1zXw== 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-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=3my7Nh 7PFS9DlAtYdYB585kkMLZQlLSpCW1wAmf996c=; b=LZpdz+eYxzVSmOhtkFvdyk KDIPzzhTaJl01nivfiXKCaUuOYtAmZ1tEsQPKiyYdnh2xFC8MYaswwvztNQ2Jt5O rtSoV5Mk7FWcVrcyo3sY+hRyhLNwXdpWHlV7c4YRK2qJbgEh2LfE5MlIRFzI4+MQ c6JeIpXJCGUGJZQ8fjErQDr5MR7V246Xy2jAVJ8r6Di9mGQ6GA7RTgLZiB8sjC3w wmN50GvQW9+KiRRFuPIfBP5awPiNs8rSnccVT4pAX3ZtLdUYyNPA/zK/gUVsCo7T Dwmb0/jOzuCDxFiAO6/cggi5nsHn522YlyuBM2BInomZPF4m4KfDZP5jdDNpwUlA == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrtdeggdeghecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeffhfeu ffdunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 13 Jan 2022 21:15:50 -0500 (EST) Date: Thu, 13 Jan 2022 18:15:49 -0800 From: Andres Freund To: Peter Geoghegan Cc: Dmitry Dolgov <9erthalion6@gmail.com>, Alexander Lakhin , Matthias van de Meent , PostgreSQL mailing lists Subject: Re: BUG #17255: Server crashes in index_delete_sort_cmp() due to race condition with vacuum Message-ID: <20220114021549.m6ugihzjmsunv3jd@alap3.anarazel.de> References: <20211111030821.2xxl75qfkynaga4j@alap3.anarazel.de> <20211116023918.5g6d6izevronx76m@alap3.anarazel.de> <20211122175914.ayk6gg6nvdwuhrzb@alap3.anarazel.de> <20211122223436.ov3qa27pakxay6z7@alap3.anarazel.de> <20211211045710.ljtuu4gfloh754rs@alap3.anarazel.de> <20220112192508.vibr6o64h7sy7mbw@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: Archived-At: Precedence: bulk On 2022-01-12 13:05:45 -0800, Peter Geoghegan wrote: > On Wed, Jan 12, 2022 at 11:25 AM Andres Freund wrote: > > > Any blockers? > > > > I'm just struggling with / procrastinating on the commit message, tbh. The > > whole issue is kinda complicated to explain... :/ After struggling some more, I *finally* pushed the fix and the new assertions. Thanks for the bug report, investigation, review, etc! > I think that it would make sense for the commit message to frame the > problem as: pruneheap.c doesn't take sufficient care when traversing > HOT chains to determine their full extent, for the purposes of > pruning. There was a general lack of robustness, and the snapshot > scalability work happened to run into that, resulting in hot chain > corruption under very specific conditions. > > If I was in your position I think I would resist framing the problem > in this way; I'd probably be concerned that it would come off as > shifting the blame elsewhere. This high level explanation of things > makes the most sense to me, though. Surely that's the most important > thing. Thanks!