Re: Function parameter names

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function parameter names
Дата
Msg-id 5992.1069792822@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Function parameter names  (Dennis Bjorklund <db@zigo.dhs.org>)
Список pgsql-hackers
Dennis Bjorklund <db@zigo.dhs.org> writes:
> and the identifier x (as all identifiers) can not be too long. Still, one 
> can create the function and update the system table by hand to change x to 
> a longer name. Doesn't that sound ugly to you?

It has always been, and likely always will be, possible to use manual
updating of the system catalogs to arrive at states that you could not
get into otherwise, and which might or might not work "correctly", for
whatever value of "correctly" you think is correct.  This doesn't
particularly bother me, since we have always told people that manual
updates are unsupported and are strictly for people who know exactly
what they're doing.

If it really bugs you, possibly the column could be declared as
"varchar(NAMEDATALEN-1)[]" rather than "text[]", but I think the amount
of effort needed to make that happen within the .bki file would be well
out of proportion to the usefulness.  (Actually, it'd still not be 100%
right, since varchar(N) counts characters not bytes ...)
        regards, tom lane


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: A rough roadmap for internationalization fixes
Следующее
От: Tom Lane
Дата:
Сообщение: Re: A rough roadmap for internationalization fixes