Re: date_part vs extract

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: date_part vs extract
Дата
Msg-id Pine.LNX.4.30.0111291724360.609-100000@peter.localdomain
обсуждение исходный текст
Ответ на date_part vs extract  (Markus Bertheau <twanger@bluetwanger.de>)
Ответы Re: date_part vs extract  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-sql
Markus Bertheau writes:

> I wonder about the difference between date_part('week', ...) and
> extract(week from ...) not only but also from a performance point of
> view. I read extract is standard and date_part is not. Backwards
> compatibility maybe justifies the existence of date_part. Whats else?

I think date_part() was adapted from Ingres.  Btw., note that the "week"
parameter (and most others) aren't standard either.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PL/pgSQL loops?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: date_part vs extract