Re: BUG #3394: Partial search not working - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #3394: Partial search not working
Date
Msg-id 27357.1182262813@sss.pgh.pa.us
Whole thread Raw
In response to Re: BUG #3394: Partial search not working  ("Murali Doss" <Murali.Doss@mphasis.com>)
Responses Re: BUG #3394: Partial search not working  ("Murali Doss" <Murali.Doss@mphasis.com>)
List pgsql-bugs
"Murali Doss" <Murali.Doss@mphasis.com> writes:
> I have created new database with encoding as sql_ascii and reloaded the
> data but still its returning 0 rows in Linux.

It's locale, not encoding (or not only encoding) that determines sort
order.  It sounds to me like you are using C locale on the other
installations but some non-C locale on the Linux one.  In C locale
"BA" is between "B-" and "B~" but in most other locales it's not.

Check LC_COLLATE setting to find out.  If it's wrong you'll have to
re-initdb :-(

            regards, tom lane

pgsql-bugs by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: BUG #3394: Partial search not working
Next
From: "Murali Doss"
Date:
Subject: Re: BUG #3394: Partial search not working