| From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
| Cc: | Markus Bertheau <twanger(at)bluetwanger(dot)de>, postgres sql list <pgsql-sql(at)postgresql(dot)org> |
| Subject: | Re: date_part vs extract |
| Date: | 2001-11-29 19:14:25 |
| Message-ID: | 200111291914.fATJEPD24332@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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.
Yes, from Ingres. I think Thomas added it. Both he and I have Ingres
experience.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Stephan Szabo | 2001-11-29 19:59:40 | Re: Can I CONSTRAIN a particular value to be UNIQUE? |
| Previous Message | Peter Eisentraut | 2001-11-29 19:04:34 | Re: date_part vs extract |