Re: Function parameter names

Поиск
Список
Период
Сортировка
От Dennis Bjorklund
Тема Re: Function parameter names
Дата
Msg-id Pine.LNX.4.44.0311252019450.29118-100000@zigo.dhs.org
обсуждение исходный текст
Ответ на Re: Function parameter names  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Function parameter names
Re: Function parameter names
Список pgsql-hackers
On Tue, 25 Nov 2003, Tom Lane wrote:

> Dennis Bjorklund <db@zigo.dhs.org> writes:
> > However, in the parser I use IDENT to get the parameter names and already
> > in the lexer the IDENT tokens are truncated to length NAMEDATALEN.
> 
> Right.  What's the problem?

It's strange to allow identifiers to be of any length in the system table 
when there is no way to create it using normal syntax. The parser accepts 
this kind of input:

CREATE FUNCTION foo (x int) RETURNS int AS ...

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's not a technical problem, but a matter of style. Everything works as 
it is now, but works is not always enough.

-- 
/Dennis



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

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