pg_asciifold/README.md
2020-06-07 12:40:18 -04:00

666 B

PostgreSQL ASCII folding

Reasonably fast ASCII folding functions (based on Lucene asciifolding filter) for PostgreSQL

Example:

postgres=# SELECT asciifold('Hello, ⒩ᴐⱤú⒴⁈~!');
      asciifold       
----------------------
 Hello, (n)ORu(y)?!~!
(1 row)

UTF8 input string is not sanitized (invalid UTF8 might lead to undefined behavior)

Compiling from source (CMake)

apt install postgresql-server-11-dev
cmake .
make

See asciifolding.c & build.sh for more information