Re: Question about encoding - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: Question about encoding
Date
Msg-id 523023.44829.qm@web31815.mail.mud.yahoo.com
Whole thread Raw
In response to Question about encoding  ("Daniel Serodio" <dserodio@gmail.com>)
Responses Re: Question about encoding  ("Daniel Serodio" <dserodio@gmail.com>)
List pgsql-general
> Is it possible to configure PostgreSQL so that a " LIKE 'a' " query
> will match a 'á' value, ie, make it accent-insensitive ?

I forgot this was possible using regular expressions. I don't think it is possible using the LIKE
syntax.  if you use something like:

select * from yourtable
where yourstring ~ '[=e=]';

http://www.postgresql.org/docs/8.2/interactive/functions-matching.html#POSIX-BRACKET-EXPRESSIONS

Regards,

Richard Broersma Jr.

pgsql-general by date:

Previous
From: "Uwe C. Schroeder"
Date:
Subject: Re: Connecting via ssh tunnel
Next
From: Scott Ribe
Date:
Subject: Re: NULLs ;-)