| From: | Jeff Davis <jdavis(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: pg_unicode_fast: fix final sigma logic. |
| Date: | 2026-07-07 22:05:35 |
| Message-ID: | E1whDv5-0003QS-1R@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
pg_unicode_fast: fix final sigma logic.
If the string is preceded only by Case Ignorable characters, don't
consider it to be a final sigma.
In the process, refactor so that the preceding and following
characters are found first, and then the rule is applied, to improve
clarity.
Discussion: https://postgr.es/m/c355354e6c3f4a7aafb047361b73db247260fca0.camel@j-davis.com
Backpatch-through: 18
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/66ec24276b18d111b916e6189b25e5c0a998a1f2
Modified Files
--------------
src/common/unicode_case.c | 88 ++++++++++++++----------------
src/test/regress/expected/collate.utf8.out | 6 ++
src/test/regress/sql/collate.utf8.sql | 1 +
3 files changed, 47 insertions(+), 48 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Heikki Linnakangas | 2026-07-07 22:17:23 | pgsql: Remove unused tuple fetch in speculative completion |
| Previous Message | Jeff Davis | 2026-07-07 21:54:09 | pgsql: pg_unicode_fast: fix final sigma logic. |