Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1outDi-0005Te-9h for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Nov 2022 10:31:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1outDg-0007jf-Sf for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Nov 2022 10:31:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1outDg-0007jW-If for pgsql-hackers@lists.postgresql.org; Tue, 15 Nov 2022 10:31:08 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1outDe-00055y-3i for pgsql-hackers@postgresql.org; Tue, 15 Nov 2022 10:31:07 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 6F3D45C00B0; Tue, 15 Nov 2022 05:31:05 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 15 Nov 2022 05:31:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1668508265; x= 1668594665; bh=RlqeE2fgdC9PeVxUlm4/Q8a2u/imrUJFQciGc25qe8I=; b=J yIiDyxsXNZ4jPfyTpyt3q6MFcQXu9zczLMIaXM3Q/kAW4CSUcZMVsS5llmHSz3m9 evfNb5wdMiRcMls578Sim+wYtVJylA+JthhYOczwiO1KryGhPyBuTUaLn4A3KPdE S5dBtsFZb2Mvz3c7yr78F0xYJ+oxd9fkhgH56b0Sph4syeU/jidpd/LR0KHIJxxs 1N/6Lrb2oGUwOe8olWadjphkgjCZ7cv5os9J4FGk46Ca06N7IeI/EWp1a5B0JZPY dXWVhX5t66hX9VhIeL6zEueTkltsy0jupr5I95TldLcuvT1f5p6QROefIoabPETY NzHqeDg8ovKOOAs0L4eGg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedrgeeggddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhephfejudeuleefheeutddu feetjeevgeeiieeujeeuheefkedttdeuieeiieethfevnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Nov 2022 05:31:04 -0500 (EST) Message-ID: Date: Tue, 15 Nov 2022 11:31:03 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.4.1 Subject: Re: Non-decimal integer literals Content-Language: en-US To: John Naylor Cc: pgsql-hackers References: <0f37d2ec-6689-4d23-7ba5-4d2a73c2666f@enterprisedb.com> <577603ec-787b-61b8-23a2-1bd0457ed1c7@enterprisedb.com> <2317133.1643155358@sss.pgh.pa.us> <97aa22d7-b80f-efa1-f368-3dbf73a15980@enterprisedb.com> <071c40f2-15cf-5db3-8799-dbac041bb881@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 14.11.22 08:25, John Naylor wrote: > Regarding the patch, it looks good overall. My only suggestion would be > to add a regression test for just below and just above overflow, at > least for int2. ok > Minor nits: > > - * Process {integer}.  Note this will also do the right thing with > {decimal}, > + * Process {*integer}.  Note this will also do the right thing with > {numeric}, > > I scratched my head for a while, thinking this was Flex syntax, until I > realized my brain was supposed to do shell-globbing first, at which > point I could see it was referring to multiple Flex rules. I'd try to > rephrase. ok > +T661 Non-decimal integer literals YES SQL:202x draft > > Is there an ETA yet? March 2023 > Also, it's not this patch's job to do it, but there are at least a half > dozen places that open-code turning a hex char into a number. It might > be a good easy "todo item" to unify that. right