extract epoch bug - Mailing list pgsql-bugs

From olav@venus.jordforsk.no (Hans Olav Eggestad)
Subject extract epoch bug
Date
Msg-id 20050704220506.2805A36B@venus.jordforsk.no
Whole thread Raw
Responses Re: extract epoch bug  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Re: extract epoch bug  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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
posgresversion of my sybase applications) 

pgsql-bugs by date:

Previous
From: "Ernst Bachmann"
Date:
Subject: BUG #1753: Query Optimizer does not work well with libpg / PQexecParams
Next
From: Achilleus Mantzios
Date:
Subject: Re: extract epoch bug