| From: | David Jarvis <thangalin(at)gmail(dot)com> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, pgsql-performance(at)postgresql(dot)org, Magnus Hagander <magnus(at)hagander(dot)net> |
| Subject: | Re: Analysis Function |
| Date: | 2010-06-13 19:19:05 |
| Message-ID: | AANLkTinUYpgGbtwYvaf01_-6QW6CTxEjaJmceVZg7_wX@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-performance |
Hi,
It's not immediately obvious what the default value of "timezone"
> will be?
>
The system's locale, like now(); documentation can clarify.
By named parameter, I meant default value. You could construct a timestamp
variable using:
construct_timestamp( year := 1900, hour := 1 )
When I read that code, the first thing I think it should return is:
1900-01-01 01:00:00.0000-07
I agree construct_timestamp( hour := 1 ) and construct_date() are errors:
year is required.
Dave
P.S.
I prefer to_timestamp and to_date over the more verbose construct_timestamp.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2010-06-13 23:57:39 | Command Prompt 8.4.4 PRMs compiled with debug/assert enabled |
| Previous Message | Tom Lane | 2010-06-13 15:58:24 | Re: Analysis Function |