Re: Consider \v to the list of whitespace characters in the parser - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Consider \v to the list of whitespace characters in the parser
Date
Msg-id c6a3b443-a74d-be7b-4a56-697672367bc1@eisentraut.org
Whole thread Raw
In response to Consider \v to the list of whitespace characters in the parser  (Michael Paquier <michael@paquier.xyz>)
Responses Re: Consider \v to the list of whitespace characters in the parser
List pgsql-hackers
On 21.06.23 08:45, Michael Paquier wrote:
> One thing I was wondering: has the SQL specification anything specific
> about the way vertical tabs should be parsed?

SQL has "whitespace", which includes any Unicode character with the 
White_Space property (which includes \v), and <newline>, which is 
implementation-defined.

So nothing there speaks against treating \v as a (white)space character 
in the SQL scanner.

In scan.l, you might want to ponder horiz_space: Even though \v is 
clearly not "horizontal space", horiz_space already includes \f, which 
is also not horizontal IMO.  I think horiz_space is really all space 
characters except newline characters.  Maybe this should be rephrased.




pgsql-hackers by date:

Previous
From: David Rowley
Date:
Subject: Re: Todo: Teach planner to evaluate multiple windows in the optimal order
Next
From: David Steele
Date:
Subject: Re: Optionally using a better backtrace library?