Re: Accent insensitive search?

Поиск
Список
Период
Сортировка
От Jasen Betts
Тема Re: Accent insensitive search?
Дата
Msg-id gqaai0$kv1$5@reversiblemaps.ath.cx
обсуждение исходный текст
Ответ на Accent insensitive search?  ("cifroes" <cifroes@netcabo.pt>)
Ответы Re: Accent insensitive search?  (Stuart Bishop <stuart@stuartbishop.net>)
Список pgsql-general
On 2009-03-18, cifroes <cifroes@netcabo.pt> wrote:
> This is a multi-part message in MIME format.
>
> ------_=_NextPart_001_01C9A7E6.B32BBA87
> Content-Type: text/plain;
>     charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> Hi,
>
> I have a DB in utf-8 and postgres 8.3.x.=20
>
> How can I do an accent insensitive search (like ...) ?

use a posix regular expression that matches the string you want:

select * from foo where colname ~ '^[CcĆćĈĉĊċČč][ĀāĂ㥹Aa][Pp][ŌōŎŏŐő]$';

you could write a function to do the translation.


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

Предыдущее
От: Duco Fijma
Дата:
Сообщение: lots of WAL files retained with restore_command through %r parameter
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Move PG installation to a new computer