Re: select fails on indexed varchars. - Mailing list pgsql-bugs

From Tom Lane
Subject Re: select fails on indexed varchars.
Date
Msg-id 26252.980819089@sss.pgh.pa.us
Whole thread Raw
In response to Re: select fails on indexed varchars.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> links=# select * from foo where a < 'Test0'::bpchar;
>  a
> ---
> (0 rows)

> links=#

> Are you saying the second test should have returned true under C locale?

Yes.  You are not really in C locale, or at least your postmaster isn't.
This looks like ISO sorting rules to me --- perhaps you are in en_US
locale.

> Is this a version dependant bug? Will downgrading to 6.x get me going?

No.  Fix your locale.  I'm afraid I don't have any more advice to offer
on that than I gave already ...

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Problem with inet/cidr convert functions
Next
From: Peter Mount
Date:
Subject: Re: [JDBC] no way in LargeObject API to detect short read?