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 1nw5mx-0001ro-Q7 for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 17:36:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nw5mv-000302-Dg for pgsql-bugs@arkaria.postgresql.org; Tue, 31 May 2022 17:36:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw5mu-0002zs-8i for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 17:36:13 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nw5mn-0001BN-7h for pgsql-bugs@lists.postgresql.org; Tue, 31 May 2022 17:36:11 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id 657633200916; Tue, 31 May 2022 13:36:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 31 May 2022 13:36:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1654018561; x=1654104961; bh=+ ybaIS6WwckbDqqHBkastU/P08xW1I/3/vmY71ZwlkY=; b=qfIAV7KYzM8YMOj5K uzqZA0wqClALKkQ74QX2ay0cweyjhcaVGSFMfUVc1rmloWReUull73AFrT2yJy3s TpdNYIPu5IofkWexLk6HFx6CXMq1bfeSz0Z65ZGsLAMik5CBi6IDlEF8Dce/K9m7 hm9tIWXQndNMiZ7RmkOG+gNqYRHPcDnaZbTO2f0pE0TGY9Ci1TlJj2rCwL82ZZg1 SjVTDEUfYAUOwGhj+2w6sfxABxGYDSDPqS2HW9mynv5MHBPpkl0uEY1LMHnM3nFF XD9ESFeIZN68U+Oh1guZjYeug6x+sj/sdcEiCiWATU3yFI5FAqZPUjeq2ChQLoR3 lbdiA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrkeekgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 May 2022 13:36:00 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id CA25C2A0608; Tue, 31 May 2022 19:35:58 +0200 (CEST) Date: Tue, 31 May 2022 19:35:58 +0200 From: Alvaro Herrera To: Andres Freund Cc: Michael Paquier , Andrey Borodin , Robert Haas , Peter Geoghegan , =?utf-8?B?0J/QtdGC0YrRgCDQodC70LDQstC+0LI=?= , PostgreSQL mailing lists Subject: Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY Message-ID: <202205311735.6ee52cp3igf7@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220530205125.uyxvvolr4xfdykwt@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-May-30, Andres Freund wrote: > On 2022-05-30 22:40:39 +0200, Alvaro Herrera wrote: > > c98763bf51bf Avoid spurious waits in concurrent indexing > > f9900df5f949 Avoid spurious wait in concurrent reindex > > d9d076222f5b VACUUM: ignore indexing operations with CONCURRENTLY > > That looks right, yes. Sorry, after going through these commits again, this is a misunderstanding on my part. The first two commits need not be reverted; only the third one does, which is the one that changes the way the system-wide Xmin is determined (the commit message says it affects VACUUM, but naturally it affects HOT pruning as well.) The point of the first two changes is to remove snapshot waits in CIC and RC. Before those commits, each CIC would wait for all other CICs and RCs in the system. AFAICS this is unrelated to the HOT-pruning bug. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "Para tener más hay que desear menos"