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.94.2) (envelope-from ) id 1tryDh-00Cm14-8n for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Mar 2025 11:56:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tryDf-00EmOG-VN for pgsql-bugs@arkaria.postgresql.org; Tue, 11 Mar 2025 11:56:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tryDf-00EmKB-Bn for pgsql-bugs@lists.postgresql.org; Tue, 11 Mar 2025 11:56:23 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tryDc-002Di7-2p for pgsql-bugs@lists.postgresql.org; Tue, 11 Mar 2025 11:56:22 +0000 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id E7E0211401AB; Tue, 11 Mar 2025 07:56:19 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Tue, 11 Mar 2025 07:56:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741694179; x=1741780579; bh=q kALZF6ibO2q9/LlJ1RTA7sQS74UAOO/VsNYUWvooWw=; b=g5LRSz4jepgaPUgXe WuMhi1Po44OL6d1qOdd9cSbmHEjS28R7+0v/j+ZtS59UZE6mgvmXztHP8bTqkiqF 3Wf03YxUEtMfqLIupRE0xVGVOntR1eFeKQk9L62IcFgYSa0ysbm5L3VqGRDI5JVu CNsQ/sGM5K3FjiGWOEm0rn9QmW6nIGasUC8N4P8FnCHQqNTFUT2Gp9HI7DecBGYd yQGVJQv3K74cxXSxwSo1/8jpKIObkRFIvxqPL9cXbQrG+Wp2VXuDEKoCaZbrs0Qo 7lLZ+lRODxUaENFMvtuHc/h2J6dZGcAoIXK7NxY0ScGiXhsDQbZvo2wI1aOXG4cR VKJ9w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduvddvudeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvddujeekgeegheekffel heevheefkefguedvvdehfeelffelfeejieekgedukeffnecuffhomhgrihhnpehoshhgvg hordhorhhgpdgvnhhtvghrphhrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigv pedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnoh dqihhprdhorhhgpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgt phhtthhopehpghhsqhhlqdgsuhhgsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorh hgpdhrtghpthhtohepthhosghirghsrdifvghnughorhhffhesthhuqdguohhrthhmuhhn ugdruggvpdhrtghpthhtohepthhomhgrshesvhhonhgurhgrrdhmvg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 Mar 2025 07:56:19 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741694175; bh=zdRHAwYsk9Cr7S6DXmsT4CfOmDWlSw6kVufsd3BtoG0=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=JLN7r3P92lz0SMP2itOzdkKex41mQCkoDXQLGNgrni4mVI+YGgl2R6I+UgjCk0z4g LemnTTXzJ/8mZe40SsY/HyD/gQUaJ5Z3TYBmD7tO7JQe5JRExd7MueA0lFc0EpNF3r mxIQkL4ADGpEu6midT/xSY8maDFrIPIF8gpRoZgONDJjw/QZEbvrSmE5t7GM+lN9nk 0gh0OeXwCDChrQjd4w/FSx/4XWwrw0Mhp8Mn/NC9wYHwPBaMLLVB1a/KZobVCOQJ3k o1PXeBGWHQIWVRy+NxG+FTlMJg/5tVWrffVfL7uYAT2XdgWk/Et8ueoHbfDybX59AQ Ol/eWoJG5+Vcw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 74C1391; Tue, 11 Mar 2025 12:56:15 +0100 (CET) Date: Tue, 11 Mar 2025 12:56:15 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tomas Vondra Cc: Tobias Wendorff , pgsql-bugs@lists.postgresql.org Subject: Re: BRIN index creation on geometry column causes crash Message-ID: <202503111156.7r3d2gwvc3fn@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 2025-Feb-12, Tomas Vondra wrote: > On 2/12/25 11:55, Álvaro Herrera wrote: > > Hmm, I completely agree that this is a PostGIS bug, but at the same time > > I think it's wrong for Postgres not to verify that the support function > > exists, so that we can throw an error instead of crashing. > Yeah, I'm not opposed to doing this. I don't know what's the right level > of paranoia when dealing with user-defined stuff. Yeah, I think "make sure we don't crash" is better. I've pushed this to all live branches now. > But if I get this right, this is merely a mitigation turning a crash > into ERROR, it would not help with detecting the opclass brokenness any > earlier. Until the parallel builds it was very rare to need the MERGE. True. The final fix belongs in the PostGIS opclass definition. With this patch, you can still have an index defined with a bogus opclass, but we won't crash anymore. > > My next question is why didn't brinvalidate detect this problem. > > I don't know. Either no one tried running it, or maybe it wasn't quite > clear which of the reported issues are serious and which can be ignored. > I certainly wasn't quite clear to me when I tried running it, because > all the messages are INFO, it doesn't say which functions are missing, > and at least some of it seemed to be due to cross-type operators. > > See this for details: > > https://lists.osgeo.org/pipermail/postgis-devel/2025-January/030457.html Ugh. Yeah, this report does not appear to be good enough -- it's far too noisy and at the same time not detailed enough. And maybe we're missing some detailed guidance on what to do about each of those errors. -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/