Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id CC1C2B5DC1A for ; Fri, 23 Sep 2011 15:49:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 69192-01 for ; Fri, 23 Sep 2011 18:49:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 55B5FB5DC09 for ; Fri, 23 Sep 2011 15:49:10 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p8NIn9lm006194 for ; Fri, 23 Sep 2011 18:49:09 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p8NIn9LH006193; Fri, 23 Sep 2011 18:49:09 GMT (envelope-from www) Date: Fri, 23 Sep 2011 18:49:09 GMT Message-Id: <201109231849.p8NIn9LH006193@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6220: Flagstaff From: "Nicolas Beuzeboc" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201109/161 X-Sequence-Number: 31178 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)