Re: Why does TRIM() expect an expr_list?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why does TRIM() expect an expr_list?
Дата
Msg-id 15560.1271783363@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why does TRIM() expect an expr_list?  (Korry Douglas <korry.douglas@enterprisedb.com>)
Список pgsql-hackers
Korry Douglas <korry.douglas@enterprisedb.com> writes:
>> That will break the ability to call trim() with ordinary function
>> syntax.

> Hmm... it seems counterintuitive to call TRIM() using ordinary  
> function syntax anyway.  What would the argument list look like?

"foo, bar, baz", just like any other function.  This is important because
we don't use the weird keyword-ized syntax when dumping out function
calls in rules and suchlike.  Also, in general it's preferable to not
prevent users from creating their own functions that happen to be named
like a system function.  (I think the current code fails to achieve that
last goal because of the forced function name remapping, but perhaps it
should be fixed if we're going to mess with it.)
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: BETA
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: should I post the patch as committed?