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)

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])

Reply via email to