BUG #6424: Possible error in time to seconds conversion - Mailing list pgsql-bugs

From o.bousche@krohne.com
Subject BUG #6424: Possible error in time to seconds conversion
Date
Msg-id E1Rsaxi-0008Aq-V3@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #6424: Possible error in time to seconds conversion
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      6424
Logged by:          Olaf
Email address:      o.bousche@krohne.com
PostgreSQL version: 9.1.2
Operating system:   Windows 7 - 64bits
Description:=20=20=20=20=20=20=20=20

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))) -=20
  extract(epoch
    from (cast('2012-01-01 14:30:1' as
              timestamp)))

return 0 instead of 3600?

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fw: Re: [SQL] pg_dump not correctly saving schema with partitioned tables?
Next
From: postgres@dunquino.com
Date:
Subject: BUG #6425: Bus error in slot_deform_tuple