Re: duplicate function oid symbols

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: duplicate function oid symbols
Дата
Msg-id 1344423.1603902341@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: duplicate function oid symbols  (John Naylor <john.naylor@enterprisedb.com>)
Ответы Re: duplicate function oid symbols  (John Naylor <john.naylor@enterprisedb.com>)
Список pgsql-hackers
John Naylor <john.naylor@enterprisedb.com> writes:
>> Ok, here is a patch to fix that, and also throw an error if pg_proc.dat
>> has an explicitly defined symbol.

> It occurred to me I neglected to explain the error with a comment, which
> I've added in v2.

Pushed with a bit of tweaking of the error message.

I wondered about introducing a similar prohibition for pg_type.
The only existing oid_symbol in pg_type that I think has enough
grandfather status to be tough to change is CASHOID for "money".
But we could imagine special-casing that with a handmade macro

#define CASHOID MONEYOID

and then getting rid of the oid_symbol entries.  (Or perhaps we
could just up and nuke CASHOID too?  It's somewhat dubious that
any outside code is really using that macro.)

May not be worth the trouble, but if we're anal enough to do this
patch maybe we should do that too.

            regards, tom lane



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

Предыдущее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: libpq compression
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Internal key management system