Re: Custom text type for title text

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Custom text type for title text
Дата
Msg-id 79303b77-0572-ac1f-e4b1-7096b17036f5@2ndquadrant.com
обсуждение исходный текст
Ответ на Custom text type for title text  (Daniel Heath <daniel@heath.cc>)
Список pgsql-hackers
On 03/01/2019 23:22, Daniel Heath wrote:
> I propose a 'titletext' type, which has the following properties when
> compared for equality:
>  * Case insensitivity (like 'citext')
>  * Only considers characters in [:alnum:] (that is, ignores spaces,
> punctuation, etc)

My work on insensitive/non-deterministic collations[0] might cover this.

[0]:
https://www.postgresql.org/message-id/flat/1ccc668f-4cbc-0bef-af67-450b47cdfee7%402ndquadrant.com

For example:

CREATE COLLATION yournamehere (provider = icu,
  locale = 'und-u-ks-level2-ka-shifted', deterministic = false);

(Roughly, ks-level2 means ignore case, ka-shifted means ignore punctuation.)

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Fabrízio de Royes Mello
Дата:
Сообщение: Re: Custom text type for title text
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Delay locking partitions during query execution