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 1nCQnE-0001ep-Kz for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Jan 2022 18:43:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nCQnD-0002kG-5m for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Jan 2022 18:43:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCQnC-0002k7-1M for pgsql-hackers@lists.postgresql.org; Tue, 25 Jan 2022 18:43:46 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCQn8-00078O-8z for pgsql-hackers@postgresql.org; Tue, 25 Jan 2022 18:43:45 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 383BC5C00AB; Tue, 25 Jan 2022 13:43:39 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 25 Jan 2022 13:43:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=HyigljfIwLAgpQxpqteTZhY7CgTgYz8r//eqIIPkTZo=; b=ek//MXla bJGALolImDe/p1MSdXSZ6O87QAE7nxmYwGeu9OCULHwO1dfP9ARO+u36PtGFdk0Q UdBDENVRO9K0J+9UM5FdFqL1HhEmBZWpEt7FikK7yGA/B4m8ojt72aYeE9VIcxio G3Ub1uDtJ1ziufl0xuIinbFpegxedrRXlySmTt8BnumUxMF4O/eFiIcLsgmd2FrB hRxM0oPPWgSALlrurM3603ubD1BYPKOBcOuWV3qvNgRfRZK1AGoZ+e/WTHXK/z8f 3chMYcyOr7dVYMBTOJ3Ry5X3sq0wEVNWJE5aKZ5BUGzVfIwwyi64Hdzlji+bPov4 1ool7Cxjal20vA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvdelgdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedujeevjeffjeevuddutedvkeeiueeitddvieelfeekveej udefgeeuvdejhfeuleenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 25 Jan 2022 13:43:38 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 22AEC2A034D; Tue, 25 Jan 2022 15:43:35 -0300 (-03) Date: Tue, 25 Jan 2022 15:43:35 -0300 From: Alvaro Herrera To: Peter Eisentraut Cc: pgsql-hackers , John Naylor Subject: Re: Non-decimal integer literals Message-ID: <202201251843.ajn72lsfpt36@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Jan-24, Peter Eisentraut wrote: > +decinteger {decdigit}(_?{decdigit})* > +hexinteger 0[xX](_?{hexdigit})+ > +octinteger 0[oO](_?{octdigit})+ > +bininteger 0[bB](_?{bindigit})+ I think there should be test cases for literals that these seemingly strange expressions reject, which are a number with trailing _ (0x123_), and one with consecutive underscores __ (0x12__34). I like the idea of these literals. I would have found them useful on many occassions. -- Álvaro Herrera Valdivia, Chile — https://www.EnterpriseDB.com/