Re: someone please explain this regex behaviour - Mailing list pgsql-general

From Tom Lane
Subject Re: someone please explain this regex behaviour
Date
Msg-id 27249.980639249@sss.pgh.pa.us
Whole thread Raw
In response to someone please explain this regex behaviour  (Martin Leja <Martin.Leja@unix-ag.uni-siegen.de>)
Responses Re: someone please explain this regex behaviour
List pgsql-general
Martin Leja <Martin.Leja@unix-ag.uni-siegen.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

pgsql-general by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: varchar => int
Next
From: "Oliver Elphick"
Date:
Subject: Re: How do I solve this efficiently?