Re: BUG #17539: Assert after CREATE OPERATOR CLASS command

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: d(dot)koval(at)postgrespro(dot)ru, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17539: Assert after CREATE OPERATOR CLASS command
Date: 2022-07-06 03:41:07
Message-ID: YsUEU/NFv1YDo12l@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Jul 05, 2022 at 06:32:22PM -0400, Tom Lane wrote:
> This is a broken operator class definition (it's missing most of the
> expected operators for a btree opclass). It's not exactly surprising
> that it causes problems. I have zero desire to try to make the system
> bulletproof against incorrectly-made opclasses.

Agreed. But isn't the proposal of Dmitry to switch the assertion to
an error a good thing though? It is not particularly user-friendly to
just throw an assertion if we could warn at the early stages that
something's wrong.
--
Michael

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2022-07-06 03:56:18 Re: BUG #17539: Assert after CREATE OPERATOR CLASS command
Previous Message Tom Lane 2022-07-06 03:29:03 Re: pg_upgrade (12->14) fails on aggregate