From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Barry Lind <barry(at)xythos(dot)com> |
Cc: | <pgsql-hackers(at)postgresql(dot)org>, <pgsql-general(at)postgresql(dot)org>, <john(at)xythos(dot)com>, wiggs <wiggs(at)xythos(dot)com>, lisa <lisa(at)xythos(dot)com> |
Subject: | Re: [HACKERS] Bug in index scans with Locale support enabled |
Date: | 2000-12-10 22:02:35 |
Message-ID: | Pine.LNX.4.30.0012102300160.1095-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Barry Lind writes:
> The reason for this is that in the en_US locale all non-alphanumeric
> characters are ignored when doing string comparisons. So the data above
> gets treated as:
> abc.xyz = abcxyz = abc/xyz (as the non-alphanumeric characters of '.'
> and '/' are ignored). This implys that the above query will then return
> all rows as the constant 'abc.' is the same as 'abc' for comparison
> purposes and all rows are >= 'abc'.
>
> Note that if you use a different locale for example en_UK, you will get
> different results as this locale does not ignore the . and / in the
> comparison.
The reason for that is that en_UK is not a valid locale name and will get
treated as the default "C" locale. If you use en_GB you will get the same
behaviour as for en_US.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-12-10 22:12:10 | Re: Open Source Article |
Previous Message | Bruce Momjian | 2000-12-10 22:01:58 | Re: Re: Re: Why PostgreSQL is not that popular as MySQL? |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-12-10 22:26:55 | Re: memory management suggestion |
Previous Message | Bruce Momjian | 2000-12-10 21:57:44 | Re: [Fwd: Re: [CORE] Going Beta on Monday ...] |