Re: '_' < '5' -- different answer on 7.2 and 7.3

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: David Blasby <dblasby(at)refractions(dot)net>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: '_' < '5' -- different answer on 7.2 and 7.3
Date: 2003-07-04 21:18:05
Message-ID: 20030704140921.R25171-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Fri, 4 Jul 2003, David Blasby wrote:

> I noticed a change between our 7.2 and 7.3 postgresql database.
>
> On 7.2:
>
> template1=> select '_' < '5';
> ?column?
> ----------
> f
> (1 row)
>
>
>
> On 7.3:
>
> template1=# select '_' < '5';
> ?column?
> ----------
> t
> (1 row)
>
>
> Any reason for this change?

My first guess would be that you're not running in "C" locale
on the 7.3 system. I get false on my 7.3.1 system in C locale,
but if I compare the two strings in C using en_US for example I
seem to get results like the above ('_'<'5' is true).

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Darcy Buskermolen 2003-07-04 21:20:34 Re: [HACKERS] Proof-of-concept for initdb-time shared_buffers selection
Previous Message Brian Tarbox 2003-07-04 21:14:01 Re: PostgreSQL vs. MySQL