Re: someone please explain this regex behaviour

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Martin Leja <Martin(dot)Leja(at)unix-ag(dot)uni-siegen(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: someone please explain this regex behaviour
Date: 2001-01-27 23:47:29
Message-ID: 27249.980639249@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Martin Leja <Martin(dot)Leja(at)unix-ag(dot)uni-siegen(dot)de> writes:
> Why e.g. does the statement "select path from foo where path ~* '^/my';"
> not return the only entry "/My"? Can someone explain this?

I think you're getting bitten by the LIKE-index-optimization-in-non-
ASCII-locale problem. Are you running the server in a locale other
than "C"? See the many past threads about this type of issue ...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-01-27 23:49:10 Re: varchar => int
Previous Message Frank Joerdens 2001-01-27 23:39:08 Re: Setting logfile location with pg_ctl and postgres.conf