Re: [PATCH] Expand character set for ltree labels
Andrew Dunstan <andrew@dunslane.net>
From: Andrew Dunstan <andrew@dunslane.net>
To: Garen Torikian <gjtorikian@gmail.com>, Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2023-01-06T15:59:14Z
Lists: pgsql-hackers
On 2022-10-05 We 18:05, Garen Torikian wrote: > After digging into it, you are completely correct. I had to do a bit > more reading to understand the relationships between UTF-8 and wchar, > but ultimately the existing locale support works for my use case. > > Therefore I have updated the patch with three much smaller changes: > > * Support for `-` in addition to `_` > * Expanding the limit to 512 chars (from the existing 256); again it's > not uncommon for non-English strings to be much longer > * Fixed the documentation to expand on what the ltree label's > relationship to the DB locale is > Regardless of the punycode issue, allowing hyphens in ltree labels seems quite reasonable. I haven't reviewed the patch yet, but if it's OK I intend to commit it. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com
Commits
-
Allow hyphens in ltree labels
- b1665bf01e5f 16.0 landed
-
Check that xmax didn't commit in freeze check.
- eb5ad4ff05fd 16.0 cited
-
Push lpp variable closer to usage in heapgetpage()
- e351f8541831 16.0 cited
-
tests: Restrict pg_locks queries in advisory_locks.sql to current database
- c3315a7da57b 16.0 cited