Re: [PATCH] hstore: Fix parsing on Mac OS X: isspace() is locale specific
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael@paquier.xyz>
Cc: Evan Jones <evan.jones@datadoghq.com>, pgsql-hackers@postgresql.org
Date: 2023-06-18T16:38:12Z
Lists: pgsql-hackers
Michael Paquier <michael@paquier.xyz> writes: > At the end, no need to do that. I have been able to hack the > attached, that shows the difference of treatment for \v when running > in macOS. Evan, what do you think? FWIW, I think the status quo is fine. Having hstore do something that is neither its historical behavior nor aligned with the core parser doesn't seem like a great idea. I don't buy this argument that somebody might be depending on the handling of \v in particular. It's not any stronger than the argument that they might be depending on, say, recognizing no-break space (0xA0) in LATIN1, which the old code did (probably, depending on platform) and scanner_isspace will not. If anything, the answer for these concerns is that d522b05c8 should not have been back-patched. But I'm okay with where we are. regards, tom lane
Commits
-
CREATE DATABASE: make LOCALE apply to all collation providers.
- a14e75eb0b6a 16.0 cited
-
hstore: Tighten key/value parsing check for whitespaces
- bbfc26d861fa 11.21 landed
- edf1de65e529 12.16 landed
- 78bf0a256d12 13.12 landed
- e0e6829459b0 14.9 landed
- 3a5222a432be 15.4 landed
- d522b05c8c1c 16.0 landed
-
Tighten checks for whitespace in functions that parse identifiers etc.
- 9ae2661fe1fe 10.0 cited