Re: [HACKERS] use of / in ~ vs. ~*

2000-09-27 Thread Peter Eisentraut
Hannu Krosing writes: > I think I'm using the default locale (this is just straight install on > Linux from RPM-s) > > Is there any way to find out the locale used from within the running > system ? The locale the postmaster uses is whatever was set in its environment, i.e., LC_ALL, etc. --

Re: [HACKERS] use of / in ~ vs. ~*

2000-09-27 Thread Hannu Krosing
Tom Lane wrote: > > Hannu Krosing <[EMAIL PROTECTED]> writes: > > Can anyone explain why I must make / a character class > > in case-insensitive query in order to match / ? > > What LOCALE are you using? There was a thread about strange ordering > rules confusing the LIKE/regexp optimizer recen

Re: [HACKERS] use of / in ~ vs. ~*

2000-09-26 Thread Tom Lane
Hannu Krosing <[EMAIL PROTECTED]> writes: > Can anyone explain why I must make / a character class > in case-insensitive query in order to match / ? What LOCALE are you using? There was a thread about strange ordering rules confusing the LIKE/regexp optimizer recently ...

[HACKERS] use of / in ~ vs. ~*

2000-09-26 Thread Hannu Krosing
Can anyone explain why I must make / a character class in case-insensitive query in order to match / ? and then why does it work in plain ~ ? hannu=> select * from item where path ~* '^/a'; path -- /a/b/c /a/b/d /a/d/d /aa/d /a/b /a/c /a/d (7 rows) hannu=> select * from item wher