| From: | olav(at)venus(dot)jordforsk(dot)no (Hans Olav Eggestad) |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | extract epoch bug |
| Date: | 2005-07-04 22:05:06 |
| Message-ID: | 20050704220506.2805A36B@venus.jordforsk.no |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
I've just installed v8.0.3 and tested the 'epoch' part of extract, which for
my applications is fundamental. here is the result:
jova=# select extract(epoch from timestamp '19700102')\g
date_part
-----------
82800
(1 row)
jova=# select extract(epoch from timestamp '19700101')\g
date_part
-----------
-3600
(1 row)
jova=# select extract(epoch from timestamp with time zone '19700101')\g
date_part
-----------
-3600
(1 row)
jova=# select extract(epoch from timestamp without time zone '19700101')\g
date_part
-----------
-3600
(1 row)
the time zone here is 1 hour before GMT, so i guess it has something to do with that, but i have to have this function correct. hope i can get a patch for this soon. (BTW i've not tested this in earlier versions, but i'm now going to make posgres version of my sybase applications)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Ernst Bachmann | 2005-07-05 09:09:06 | BUG #1753: Query Optimizer does not work well with libpg / PQexecParams |
| Previous Message | Luis Guevara | 2005-07-04 19:48:52 | BUG #1752: Problema al insertar TIME |