Re: LEAST and GREATEST functions?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LEAST and GREATEST functions?
Дата
Msg-id 24828.1057124242@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LEAST and GREATEST functions?  (Ang Chin Han <angch@bytecraft.com.my>)
Ответы Re: LEAST and GREATEST functions?  (Ang Chin Han <angch@bytecraft.com.my>)
Список pgsql-sql
Ang Chin Han <angch@bytecraft.com.my> writes:
> If LEAST and GREATEST can accept any number of parameters, wouldn't it 
> make sense to code it like the way COALESCE works, rather than defining 
> a function for it? This way we don't need define all the various 
> functions with different types.

But COALESCE is a special feature hard-wired into the parser.  There's
no free lunch --- you pay for your extensibility somewhere.
        regards, tom lane


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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: Break referential integrity.
Следующее
От: "Atul Pedgaonkar"
Дата:
Сообщение: About Postgresql Service on SUN OS