From: | Martin Leja <Martin(dot)Leja(at)unix-ag(dot)uni-siegen(dot)de> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: someone please explain this regex behaviour |
Date: | 2001-01-28 09:28:07 |
Message-ID: | 4.3.2.7.2.20010128100528.02bd91d8@vmax.unix-ag.uni-siegen.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
At 18:47 27.01.2001 -0500, Tom Lane wrote:
>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 ...
i'm not quite familiar with this locale stuff, so i searched the docs and
found the following in doc/postgresql-doc/postgres/install12893.htm:
...
If you configure and compile Postgres with --enable-locale then you should
set the locale environment to "C" (or unset all "LC_*" variables) by
putting these additional lines to your login environment before starting
postmaster:
LC_COLLATE=C
LC_CTYPE=C
export LC_COLLATE LC_CTYPE
...
i then changed /etc/init.d/postgresql (postmaster start script in debian)
accordingly, restarted postmaster with the script, but unfortunetly i get
the same results.
I wonder if i disabled the LIKE-index-optimization-in-non-ASCII-locale with
the above action at all and if this is the problem of my select results.
Isn't there a "psql -c 'show ???'" command which can report the locale
setting to me?
--
Regards, martin(at)unix-ag(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | bigdee | 2001-01-28 10:58:58 | report with PostgreSQL |
Previous Message | Tom Lane | 2001-01-28 06:28:25 | Re: simple function syntax |