From: | Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | Tomas Vondra <tomas(at)vondra(dot)me> |
Cc: | Tobias Wendorff <tobias(dot)wendorff(at)tu-dortmund(dot)de>, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BRIN index creation on geometry column causes crash |
Date: | 2025-03-11 11:56:15 |
Message-ID: | 202503111156.7r3d2gwvc3fn@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
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/
From | Date | Subject | |
---|---|---|---|
Next Message | Laurenz Albe | 2025-03-11 11:58:37 | Re: Unqualified name not resolved in function called from materialized view (17.4) |
Previous Message | Laurenz Albe | 2025-03-11 11:03:08 | Re: BUG #18833: libpq.so doesn't contain declared symbol in rpm --provides |