Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6k03-0000sl-0Z for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Jan 2014 16:52:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W6k02-0007wF-HA for pgsql-bugs@arkaria.postgresql.org; Fri, 24 Jan 2014 16:52:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6k01-0007w8-Hw for pgsql-bugs@postgresql.org; Fri, 24 Jan 2014 16:52:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W6jzz-000725-08 for pgsql-bugs@postgresql.org; Fri, 24 Jan 2014 16:52:57 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s0OGqrqp014381; Fri, 24 Jan 2014 11:52:53 -0500 From: Tom Lane To: Moshe Jacobson cc: pgsql-bugs@postgresql.org Subject: Re: Rounding error on extract(epoch ..) In-reply-to: References: Comments: In-reply-to Moshe Jacobson message dated "Fri, 24 Jan 2014 11:40:59 -0500" Date: Fri, 24 Jan 2014 11:52:53 -0500 Message-ID: <14380.1390582373@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Moshe Jacobson writes: > It seems that extract(epoch ..) does not preserve the entire precision of > the passed-in timestamp. The result is float8, so being good to about 16 digits is expected behavior. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs