pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nicolas Beuzeboc <nicolasbeuzeboc@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #6220: Flagstaff
Date: Fri, 23 Sep 2011 18:49:09 GMT
Message-ID: <201109231849.p8NIn9LH006193@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6220
Logged by:          Nicolas Beuzeboc
Email address:      nicolasbeuzeboc@gmail.com
PostgreSQL version: 8.4.8
Operating system:   Ubuntu Natty
Description:        Flagstaff
Details: 

There is a month difference between the query results

it's not happening if I take the 7.4999.. number and multiply it by interval
'1 year'

psql (8.4.8)
Type "help" for help.

postgres=# select now() - interval '7.5 years',  now()- interval
'7.4999999999999999 year', now() - interval '7.49999999999999999 years';
           ?column?            |           ?column?            |          
?column?            
-------------------------------+-------------------------------+------------
-------------------
 2004-03-23 11:44:30.980895-07 | 2004-04-23 11:44:30.980895-07 | 2004-03-23
11:44:30.980895-07
(1 row)

postgres=# select version();
                                                      version               
                                       
----------------------------------------------------------------------------
----------------------------------------
 PostgreSQL 8.4.8 on x86_64-pc-linux-gnu, compiled by GCC gcc-4.5.real
(Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2, 64-bit
(1 row)



view thread (2+ messages)  latest in thread

Message-ID: <201109231849.p8NIn9LH006193@wwwmaster.postgresql.org>
Permalink:  ../201109231849.p8NIn9LH006193@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201109231849.p8NIn9LH006193@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: nicolasbeuzeboc@gmail.com
  Subject: Re: BUG #6220: Flagstaff
  In-Reply-To: <201109231849.p8NIn9LH006193@wwwmaster.postgresql.org>
  References: <201109231849.p8NIn9LH006193@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox