Re: BUG #5220: regexp fails on punctuation characters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "jef peeraer" <jef(dot)peeraer(at)telenet(dot)be>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5220: regexp fails on punctuation characters
Date: 2009-11-30 15:36:25
Message-ID: 4481.1259595385@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"jef peeraer" <jef(dot)peeraer(at)telenet(dot)be> writes:
> my lc_locale is set to en_US.UTF-8
> if i do a search like this

> select * from contacten
> where naam ~* 'RN'
> and my contacten table contains a column naam with the value
> RNTGEN TECHNISCHE DIENST NV
> -> it won't find it

Works for me.

It is true that ~* isn't very good about upper/lower case matching
for non-ASCII letters, but that doesn't seem to apply to your
example.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Pavel Stehule 2009-11-30 17:28:28 Re: BUG #5218: Easy strategic feature requests
Previous Message Robert Haas 2009-11-30 15:23:15 Re: BUG #5218: Easy strategic feature requests