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 1ntQQt-0002va-Uq for pgsql-bugs@arkaria.postgresql.org; Tue, 24 May 2022 09:02:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntQQr-0006bz-Iy for pgsql-bugs@arkaria.postgresql.org; Tue, 24 May 2022 09:02:25 +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 1ntQQq-0006bp-KX for pgsql-bugs@lists.postgresql.org; Tue, 24 May 2022 09:02:25 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntQQl-0002oV-6B for pgsql-bugs@lists.postgresql.org; Tue, 24 May 2022 09:02:23 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C544D5C01D0; Tue, 24 May 2022 05:02:17 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 24 May 2022 05:02:17 -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=1653382937; x=1653469337; bh=2 IaHWim3StdwPcRO/NYxA7EvmbvbWg6e+tuAYWkmFKI=; b=ygOPYQ/PRASILUgD5 dIQ6fB3Ytgy5rBm1Q4myx2C6AK1g0ulXVoB/hf9jBOHm9sOvjKKpIk6fuSN3Fz/V S9P3+001lsxIoaTCBa7IwfOQTFSxAZ4Au5kV8xqT9Jv0wS019QS4VsOtWAKbR6Py wPVkNxZDLuGzWovFci9BxxkWravKCXaj5mNjbcS5JXipo1gIlt47pB2XsFgnBmZX 8HMEoH3ZJcHaWyX/DsSk4wHD4zmEObLO9RuZ0F9nuYkP2ZAYsl6ZcEvRin8wGF90 7UCTE15aKNjykWQ6YjuzljHpQyzHURocYxLLMpyqFGB8J2nWsPYjP6oKCclxOn5T uk3Gg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeefgddutdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 May 2022 05:02:16 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 92E152A1C21; Tue, 24 May 2022 11:02:12 +0200 (CEST) Date: Tue, 24 May 2022 11:02:12 +0200 From: Alvaro Herrera To: Peter Geoghegan Cc: Michael Paquier , Andrey Borodin , =?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: <202205240902.bhkvu4lgljn3@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-May-23, Peter Geoghegan wrote: > You seem to be addressing this PROC_IN_SAFE_IC snippet as if Andrey > formally proposed it as a bugfix, which seems like an odd > interpretation to me. It seems pretty clear to me that Andrey was just > making an observation, in case it helped with debugging. Right. I approached it yesterday by running the test case with each set_indexsafe_procflags() callsite commented out, see which one breaks things. Didn't reach any conclusion because I ran into thermal problems with my laptop, which got me angry and couldn't make any further progress. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "I'm always right, but sometimes I'm more right than other times." (Linus Torvalds)