aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-03-26 08:14:00 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-04-02 08:56:27 +0200
commit2991ac5fc9b3904ca4582be6d323497d7c3d17c9 (patch)
treed558847de39ee972b261026d4846f1f31e8dff12 /src/backend/tcop/postgres.c
parent070c3d3937e75e04d36405287353b7eca516555d (diff)
downloadpostgresql-2991ac5fc9b3904ca4582be6d323497d7c3d17c9.tar.gz
postgresql-2991ac5fc9b3904ca4582be6d323497d7c3d17c9.zip
Add SQL functions for Unicode normalization
This adds SQL expressions NORMALIZE() and IS NORMALIZED to convert and check Unicode normal forms, per SQL standard. To support fast IS NORMALIZED tests, we pull in a new data file DerivedNormalizationProps.txt from Unicode and build a lookup table from that, using techniques similar to ones already used for other Unicode data. make update-unicode will keep it up to date. We only build and use these tables for the NFC and NFKC forms, because they are too big for NFD and NFKD and the improvement is not significant enough there. Reviewed-by: Daniel Verite <daniel@manitou-mail.org> Reviewed-by: Andreas Karlsson <andreas@proxel.se> Discussion: https://www.postgresql.org/message-id/flat/c1909f27-c269-2ed9-12f8-3ab72c8caf7a@2ndquadrant.com
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions