pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas <maps.on@gmx.net>
Cc: pgsql-sql@postgresql.org
Subject: Re: unexpected ORDER BY
Date: Tue, 09 Nov 2010 11:10:47 -0500
Message-ID: <18805.1289319047@sss.pgh.pa.us> (raw)
In-Reply-To: <4CD97004.7070403@gmx.net>
References: <4CD97004.7070403@gmx.net>

Andreas <maps.on@gmx.net> writes:
> I've got an PG 8.4 on a opensuse box running.
> The DB is unicode german.

> There is a text column I'd like to order by but as far as I see PG 
> ignores special chars and uses only characters and numbers.

This is driven by the locale you're using, specifically the LC_COLLATE
setting.  If you want "plain ASCII" sort order, you need to switch to
C locale.

			regards, tom lane



view thread (2+ messages)

Message-ID: <18805.1289319047@sss.pgh.pa.us>
Permalink:  ../18805.1289319047@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18805.1289319047@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, maps.on@gmx.net
  Subject: Re: unexpected ORDER BY
  In-Reply-To: <18805.1289319047@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox