Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDwyN-00088f-4O for pgsql-sql@arkaria.postgresql.org; Thu, 25 May 2017 17:54:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dDwyM-0002MR-4D for pgsql-sql@arkaria.postgresql.org; Thu, 25 May 2017 17:54:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDwyK-0002Jw-CR for pgsql-sql@postgresql.org; Thu, 25 May 2017 17:54:52 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dDwyI-0004YG-7b for pgsql-sql@postgresql.org; Thu, 25 May 2017 17:54:51 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v4PHsmXQ024935; Thu, 25 May 2017 13:54:48 -0400 From: Tom Lane To: Vladimir Nicolici cc: "pgsql-sql@postgresql.org" Subject: Re: Re: SQL error: function round(double precision, integer) does not exist In-reply-to: References: Comments: In-reply-to Vladimir Nicolici message dated "Thu, 25 May 2017 17:26:48 -0000" Date: Thu, 25 May 2017 13:54:48 -0400 Message-ID: <16203.1495734888@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Vladimir Nicolici writes: > Any plans to fix this annoyance? Not particularly. Making round() work with floats seems questionable, since the result frequently couldn't be represented exactly, making the whole exercise a bit pointless. Why don't you cast the float to numeric? regards, tom lane -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql