Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aklhb-00060E-3j for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 04:56:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aklha-0000R5-MX for pgsql-hackers@arkaria.postgresql.org; Tue, 29 Mar 2016 04:56:26 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aklhZ-0000QM-Be for pgsql-hackers@postgresql.org; Tue, 29 Mar 2016 04:56:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aklhV-0000gf-Ux; Tue, 29 Mar 2016 04:56:24 +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 u2T4uJD2014518; Tue, 29 Mar 2016 00:56:19 -0400 From: Tom Lane To: Michael Paquier cc: Robert Haas , PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: pgbench: Support double constants and functions. In-reply-to: References: Comments: In-reply-to Michael Paquier message dated "Tue, 29 Mar 2016 13:25:47 +0900" Date: Tue, 29 Mar 2016 00:56:19 -0400 Message-ID: <14517.1459227379@sss.pgh.pa.us> X-Pg-Spam-Score: -2.9 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Michael Paquier writes: > On Tue, Mar 29, 2016 at 9:52 AM, Robert Haas wrote: >> pgbench: Support double constants and functions. > Instead of INT64_MIN and INT64_MAX, I think that it would be better to > use PG_INT64_MIN and PG_INT64_MAX. Indeed. > Note as well that DOUBLE is an > existing variable type in VS (while INTEGER is not), Ooops; that one was harder to foresee. > A way to fix compilation here is to rename those tokens to something > that will never conflict, like in the attached to DOUBLE_VAR and > INTEGER_VAR, both exprparse.y and exprparse.l need an update. Agreed, but these symbols represent constants not variables, so I used DOUBLE_CONST and INTEGER_CONST instead. Pushed with those corrections, so that we can get back to looking at my own bugs :-( regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers