Re: LC_COLLATE=es_MX in PgSQL 7.3.2

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Octavio Alvarez <alvarezp(at)octavio(dot)ods(dot)org>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: LC_COLLATE=es_MX in PgSQL 7.3.2
Date: 2003-06-16 12:45:04
Message-ID: Pine.LNX.4.44.0306161358290.2751-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Octavio Alvarez writes:

> No accents here. I would have expected:
> p | m
> -------+-------
> OCTAV | ALVAA
> octav | alvar
> OCTAV | ALVAZ
> OCTIa | ALVAa
> octia | alvra
> OCTIb | ALVZa
> OCTIb | ALVZa
> OCTIc | ALVAa
> octic | alvra
> OCTVI | ALVAa
> octvi | alvra
> OCTVI | ALVZa
> (12 rows)

That's not the way it works. First it sorts by p, then by m -- there is
no cross-column magic. Maybe for your application you will be happier if
you sort by lower(p), lower(m).

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2003-06-16 12:45:59 Re: How can I insert a UTF-8 character with psql?
Previous Message Nigel J. Andrews 2003-06-16 10:54:14 Re: full featured alter table?