mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-22 00:13:22 +02:00
This has required an update of the python script generating the rules, as its format has changed in release 29. This release has also added new punctuation and symbols, and a new set of rules has been generated to include them. The way to find newest versions of Latin-ASCII gets also more clearly documented. Author: Hugh Ranalli, Michael Paquier Discussion: https://postgr.es/m/15548-cef1b3f8de190d4f@postgresql.org
22 lines
564 B
SQL
22 lines
564 B
SQL
CREATE EXTENSION unaccent;
|
|
|
|
-- must have a UTF8 database
|
|
SELECT getdatabaseencoding();
|
|
|
|
SET client_encoding TO 'UTF8';
|
|
|
|
SELECT unaccent('foobar');
|
|
SELECT unaccent('ёлка');
|
|
SELECT unaccent('ЁЖИК');
|
|
SELECT unaccent('˃˖˗˜');
|
|
|
|
SELECT unaccent('unaccent', 'foobar');
|
|
SELECT unaccent('unaccent', 'ёлка');
|
|
SELECT unaccent('unaccent', 'ЁЖИК');
|
|
SELECT unaccent('unaccent', '˃˖˗˜');
|
|
|
|
SELECT ts_lexize('unaccent', 'foobar');
|
|
SELECT ts_lexize('unaccent', 'ёлка');
|
|
SELECT ts_lexize('unaccent', 'ЁЖИК');
|
|
SELECT ts_lexize('unaccent', '˃˖˗˜');
|