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

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #17539: Assert after CREATE OPERATOR CLASS command
Дата
Msg-id YsUEU/NFv1YDo12l@paquier.xyz
обсуждение исходный текст
Ответ на Re: BUG #17539: Assert after CREATE OPERATOR CLASS command  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #17539: Assert after CREATE OPERATOR CLASS command  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17539: Assert after CREATE OPERATOR CLASS command
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #17539: Assert after CREATE OPERATOR CLASS command