Re: select fails on indexed varchars.

From: Alex Krohn <alex(at)gossamer-threads(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: select fails on indexed varchars.
Date: 2001-01-26 05:51:37
Message-ID: 20010125214821.0AC6.ALEX@gossamer-threads.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi Tom,

> Alex Krohn <alex(at)gossamer-threads(dot)com> writes:
> > links=# select * from foo where a like 'Test/%'
> > links-# ;
> > a
> > ---
> > (0 rows)
>
> This looks like an artifact of the known problems with LIKE index
> optimization in non-ASCII locales. What locale are you running the
> postmaster in?

Is this what you are looking for:

[postgres(at)penguin pgsql]$ locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_ALL=en_US
[postgres(at)penguin pgsql]$

Postmaster is running as user pgsql. Any ideas on workarounds?

Cheers,

Alex

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Richards 2001-01-26 05:59:10 Re: Postgres int rounding
Previous Message Robert B. Easter 2001-01-26 05:49:46 Re: BUG in postgres mathematic