From: Michael Paquier <michael@paquier.xyz>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: d.koval@postgrespro.ru
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17539: Assert after CREATE OPERATOR CLASS command
Date: Wed, 6 Jul 2022 12:41:07 +0900
Message-ID: <YsUEU/NFv1YDo12l@paquier.xyz> (raw)
In-Reply-To: <2029909.1657060342@sss.pgh.pa.us>
References: <17539-37e89c604ebc0e02@postgresql.org>
<2029909.1657060342@sss.pgh.pa.us>
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
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: michael@paquier.xyz, tgl@sss.pgh.pa.us, d.koval@postgrespro.ru
Subject: Re: BUG #17539: Assert after CREATE OPERATOR CLASS command
In-Reply-To: <YsUEU/NFv1YDo12l@paquier.xyz>
References: <17539-37e89c604ebc0e02@postgresql.org> <2029909.1657060342@sss.pgh.pa.us> <YsUEU/NFv1YDo12l@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox