Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5uNk-003kLM-3C for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Mar 2026 23:44:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5uNj-006Z6W-0c for pgsql-bugs@arkaria.postgresql.org; Thu, 26 Mar 2026 23:44:55 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w5uNi-006Z5z-32 for pgsql-bugs@lists.postgresql.org; Thu, 26 Mar 2026 23:44:55 +0000 Received: from fout-b6-smtp.messagingengine.com ([202.12.124.149]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w5uNb-00000001NTu-3a7i for pgsql-bugs@lists.postgresql.org; Thu, 26 Mar 2026 23:44:50 +0000 Received: from phl-compute-03.internal (phl-compute-03.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id 1F7251D00259; Thu, 26 Mar 2026 19:44:47 -0400 (EDT) Received: from phl-frontend-03 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Thu, 26 Mar 2026 19:44:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1774568686; x=1774655086; bh=boKZtbAW8u uTkQqxVGvTBqNcmmSLJMUyOTM1nl+oeqE=; b=SzXGZ72ocjMCEMF1qIBECHHoUp QZqrQTL0agdvLqPLnRr/6Ba5uNFrvYTnENfCTtw7Qtc4x9UZBkiaHa7HyQ1i2GPO gbRCk0m4jYM/yRA4BrsLGM1Cwkaf1qhbkKMZoBjfDfgdYX6FxE87KvB+TDYGG49f 6ru2WEBHCn3MxwiF5aQZmaeWDh6FJEFmA1w3JORLAsng4kUGpRMz/UfsCV1+NRXL 3tYVuJMeH4Z4OUsWRhxilTHFkKbxe4lwPGoH4cnDIvZL++PlZZmVMKbh6zS1fnCE dFSGLl8HLIhhQ1X2odQPz/nPJCHe5FXH9PbLlHXyug+JtNvpfff3+XV/11Zw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1774568686; x=1774655086; bh=boKZtbAW8uuTkQqxVGvTBqNcmmSLJMUyOTM 1nl+oeqE=; b=SuVIgZLHt9JHomHB1CPTWjnhE7XL4NmARFOpL890aYZqICvVplp /GtXnFBuGTkAQPsOE9LrrZOUTWV5HsmB+FBSDVOSU1h45i5oFvGJZucZowmXZugy UDjOgEFInj3DfT8elIvHm4pUO8psvtaAElY5xT6BiWUpzcMF+yU6DaRy3NOMeWJN TgxpXYAfzYvYd6VE+PjOb2pnZ63zm/iqz/xnVLCdOSzmfYwfburVLJUMle+AV1Pa oOUKjx3ZkB+5vG2rvLwhCbZdAlNmdMz3Fs/M/HEeCbv+5wQJW/m6VBxthnT6qKYS SSVp4gTIzJ1wB5ALBCtV+XfCSR0IRNoTRuQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgdefvdekjeegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnegfrh hlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeggeeg fffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiidp nhgspghrtghpthhtohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheprghnrg drrghlmhgvihgurgesthhimhgvshhtrghmphdrphhtpdhrtghpthhtohepthhomhgrshes vhhonhgurhgrrdhmvgdprhgtphhtthhopehjihhmrdhjohhnvghssehunhhiqdhmuhgvnh hsthgvrhdruggvpdhrtghpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhs thhgrhgvshhqlhdrohhrghdprhgtphhtthhopehnuhhnohdrrgiivghvvgguohesthhimh gvshhtrghmphdrphht X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 Mar 2026 19:44:44 -0400 (EDT) Date: Fri, 27 Mar 2026 08:44:40 +0900 From: Michael Paquier To: Ana Almeida Cc: Tomas Vondra , Jim Jones , "pgsql-bugs@lists.postgresql.org" , Nuno Azevedo Subject: Re: Segmentation fault in PostgreSQL 17.7 during REINDEX TABLE CONCURRENTLY Message-ID: References: <941c71e4-3b46-4eab-a5de-b59511ab1018@uni-muenster.de> <883b7a3c-84ac-4825-a73e-6772c81bc1e1@vondra.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="j3foT5kJ1x8mm83q" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --j3foT5kJ1x8mm83q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Mar 20, 2026 at 12:26:36PM +0000, Ana Almeida wrote: > We executed DELETE, VACUUM, and REINDEX commands multiple > times. During one of the executions, the REINDEX operation failed > with the error: "could not open file". After this, we dropped and > recreated the database and repeated the tests. In one of the > executions, the same REINDEX command resulted in segmentation fault, > which caused the database to crash. When the REINDEX command failed, > it left behind temporary index copies with the _ccnew suffix. We > manually dropped these indexes and re-ran the REINDEX command, which > then completed successfully.=20 I am afraid that it is one of these cases where having a self-contained workload to be able to reproduce the issue, even if the issue can be hit at a very low rate, would be super useful before we could categorize that as a backend core issue. I could buy that there is an in-core problem, but it's hard to justify the time investment based on an assumption that we may have a problem. FWIW, I have not seen such problematic error patterns lately, so it's hard to say. I'll double-check around me and see if there is some data to fish. Perhaps there is something matching with a portion of your problematic patterns, or that has a similar smell.=20 -- Michael --j3foT5kJ1x8mm83q Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmnFxOgACgkQnvQgOdby QH2hiBAAqAGgMbm5OarAw9RH3FowAsqG3cq9cNXCPatEFXG8UaxHK843HZqQuGV8 eZDmBuj6Kgn0rrucJ4PffvVtIWHtzf8eZMlNeyt/M4gpKApDy+s5bqIzPgfsTXNV Qz/gN+RjxpBeo8nmvXQa2VFlMhT4LTm0WNErd+OO9NUjgGZ+z41XzFpKiTE31Dgi kIQmZ/JMQ2lLAwbIh4ZC1GL0og9+ZrquC4RpBhfwKnl6faISIYdnbWzds5P0+F1B 3Xb+nKTbaBuKFDIRxRNd1AaD2c3PIkQ8t5qiaNghqsGD9+cCXpxfc3LIJg37Z1gm b7b6FXvNbqjjDXMepw0tNLx4+CNpsMj99lppWC0manAtLcVOc9eDQL5EBiRhPwNm WQNiBvN5vX7vOy4BCjAYByG2MQ6ryCLBPqNTEcCToAEWYFd0qkzAF4dVe1yzfrSM FSamlcik16FTZlSeMFnmBz+RhJ4bO8wKukfIS5qM2uvrUAtdvs0yWYRMSinY4X3u 3/fNkcJdF5WeKCOAZn1hIdC+l3Jpmiq+89Lf4FVyTOXmYvMrVfXbEHlDPzY5wpvE +rAomJBjTKnyfHvLPT3dJ8ttcBVaOzHJa7EYowhEed66XLtn1iuCNiiM6h9tLNM4 P/fukkac+V5bQJcC9qO78GrxgQ8AJCPXyGeYb1bfZJltSi4QdXo= =wxHL -----END PGP SIGNATURE----- --j3foT5kJ1x8mm83q--