Re: Bug #897: EXTRACT(EPOCH FROM column): Possible wrong output - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #897: EXTRACT(EPOCH FROM column): Possible wrong output
Date
Msg-id 29470.1046381975@sss.pgh.pa.us
Whole thread Raw
In response to Re: Bug #897: EXTRACT(EPOCH FROM column): Possible wrong output  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
I said:
> In most other contexts, we interpret such values as being in local time
> (the current server TimeZone) when it's necessary to make a distinction.
> Consistency would suggest doing it that way here too, I think.

I have applied a patch to make extract(epoch from timestamp) assume that
timestamps without time zone are in local time, and generate the correct
Unix epoch value accordingly.  This will appear in 7.3.3.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Llew Sion Goodstadt"
Date:
Subject: Re: psql -F problems
Next
From: Andrew Koshelev
Date:
Subject: Optimizer bug in subselect