Re: Prevent numeric literals from having non-numeric trailing characters (Peter Eisentraut)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Fabrice Chapuis <fabrice636861(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Prevent numeric literals from having non-numeric trailing characters (Peter Eisentraut)
Date: 2025-06-20 14:40:30
Message-ID: 1929259.1750430430@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Fabrice Chapuis <fabrice636861(at)gmail(dot)com> writes:
> Regarding the changes made in version 15 for the traitment of the non-numeric
> trailing characters, why does parsing continue to be permissive with
> parentheses (no need to add a space)?

A parenthesis cannot be part of a larger token, so I don't see
any ambiguity that we'd need to resolve by requiring spaces.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2025-06-20 14:41:42 Re: Huge commitfest app update upcoming: Tags, Draft CF, Help page, and automated commitfest creat/open/close
Previous Message Junwang Zhao 2025-06-20 14:40:07 Re: Fixes inconsistent behavior in vacuum when it processes multiple relations