Re: PL/pgSQL Todo, better information in errcontext from plpgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/pgSQL Todo, better information in errcontext from plpgsql
Дата
Msg-id 20591.1160145603@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/pgSQL Todo, better information in errcontext from plpgsql  ("Pavel Stehule" <pavel.stehule@hotmail.com>)
Список pgsql-hackers
"Pavel Stehule" <pavel.stehule@hotmail.com> writes:
>> Why do you need the OID to know exactly what function something is?  What's 
>> wrong with schema.function(args)?

> oid is simply unique. I can take source code, args and all without parsing. 
> It's only one difference. I unlike parsing.

That isn't an adequate reason for pushing an implementation detail into
the user's face.  IMHO no error message seen by ordinary users should
mention OIDs at all.  A thought experiment: what would you do with the
message if we were to reimplement the system to not use OIDs?

I'm willing to talk about putting a complete specification of the
function (with schema and arg types) into the context line, but you
haven't really made the case why that wouldn't be just clutter for most
people.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pg_dump exclusion switches and functions/types
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pg_dump exclusion switches and functions/types