Re: minor error message inconsistency in make_pathkey_from_sortinfo

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: minor error message inconsistency in make_pathkey_from_sortinfo
Дата
Msg-id 3936413.1714057666@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: minor error message inconsistency in make_pathkey_from_sortinfo  (jian he <jian.universality@gmail.com>)
Список pgsql-hackers
jian he <jian.universality@gmail.com> writes:
> On Wed, Apr 24, 2024 at 5:47 PM Yugo NAGATA <nagata@sraoss.co.jp> wrote:
>> This message was introduced by 278cb434110 which was aiming to
>> standardize the wording for similar errors. We can find the pattern
>> "missing {support function | operator} %d(%u,%u) in opfamily %u"
>> in several places.

> the error message
> ` operator %d`
> would translate to
> ` operator 3`

> but there is oid as 3 operator in the catalog.
> that's my confusion.

That number is the opclass' operator strategy number, not an OID
(which is why it's formatted as %d not %u).  See

https://www.postgresql.org/docs/devel/xindex.html#XINDEX-STRATEGIES

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: AIX support
Следующее
От: Nathan Bossart
Дата:
Сообщение: Re: New GUC autovacuum_max_threshold ?