Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDFPR-000569-3o for pgsql-performance@arkaria.postgresql.org; Tue, 11 Feb 2014 15:38:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WDFPQ-0004jC-Kb for pgsql-performance@arkaria.postgresql.org; Tue, 11 Feb 2014 15:38:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDFPP-0004j6-Tm for pgsql-performance@postgresql.org; Tue, 11 Feb 2014 15:38:03 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WDFPN-0002YU-C2 for pgsql-performance@postgresql.org; Tue, 11 Feb 2014 15:38:03 +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 s1BFblDr019896; Tue, 11 Feb 2014 10:37:47 -0500 From: Tom Lane To: =?UTF-8?Q?S=C3=A9bastien_Lorion?= cc: Heikki Linnakangas , M Putz , pgsql-performance Subject: Re: Strange performance boost with random() In-reply-to: References: <52F93098.2090002@vmware.com> Comments: In-reply-to =?UTF-8?Q?S=C3=A9bastien_Lorion?= message dated "Tue, 11 Feb 2014 10:21:30 -0500" Date: Tue, 11 Feb 2014 10:37:47 -0500 Message-ID: <19895.1392133067@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org =?UTF-8?Q?S=C3=A9bastien_Lorion?= writes: > That's interesting .. Does PostgreSQL always use the NUMERIC data type for > constants in absence of cast ? If they're not integers, yes, that's the initial assumption. regards, tom lane -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance