mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03: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', '˃˖˗˜');
|