BUG #6424: Possible error in time to seconds conversion

From: o(dot)bousche(at)krohne(dot)com
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6424: Possible error in time to seconds conversion
Date: 2012-02-01 14:15:02
Message-ID: E1Rsaxi-0008Aq-V3@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 6424
Logged by: Olaf
Email address: o(dot)bousche(at)krohne(dot)com
PostgreSQL version: 9.1.2
Operating system: Windows 7 - 64bits
Description:

Should the query

select
extract(epoch
from cast('2012-01-01 14:30:1' as
timestamp) -
cast('1970-01-01 0:0:0' as
timestamp))) -
extract(epoch
from (cast('2012-01-01 14:30:1' as
timestamp)))

return 0 instead of 3600?

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message postgres 2012-02-01 14:28:30 BUG #6425: Bus error in slot_deform_tuple
Previous Message Tom Lane 2012-02-01 04:47:11 Re: Fw: Re: [SQL] pg_dump not correctly saving schema with partitioned tables?