pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: thorbjorn.eriksson@ec.se
Cc: pgsql-sql@postgresql.org
Subject: Re: Stripping white-space in SELECT statments
Date: Mon, 23 Sep 2002 10:26:46 -0400
Message-ID: <21335.1032791206@sss.pgh.pa.us> (raw)
In-Reply-To: <MFEPJLNKECPAPFDGGEIMMEOJCBAA.thorbjorn.eriksson@ec.se>
References: <MFEPJLNKECPAPFDGGEIMMEOJCBAA.thorbjorn.eriksson@ec.se>

=?iso-8859-1?Q?Thorbj=F6rn_Eriksson?= <thorbjorn.eriksson@ec.se> writes:
> Thank's Tom Lane & Stephan Szabo for pointing out the problem to me.
> After some testing it turned out that the swedish locale, 'sv_SE', doesn't
> handle sorting spaces as expected, which probably made the SELECT fail. On
> the other hand, if I use the 'C' locale, the SELECT works but not the sort
> order of the swedish characters 'åäö'.

> Does anyone know a solution to this problem, or could give me a hint?

I think you are going to have to create a custom locale definition that
sorts the accented characters as you wish, but does not have the strange
rules about whitespace.  I don't know enough about locale definitions to
give advice on how ... but I'll bet after a couple hours study you could
do it by copying just the parts you want of the existing Swedish locale 
definition.

			regards, tom lane



view thread (9+ messages)  latest in thread

Message-ID: <21335.1032791206@sss.pgh.pa.us>
Permalink:  ../21335.1032791206@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21335.1032791206@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, thorbjorn.eriksson@ec.se
  Subject: Re: Stripping white-space in SELECT statments
  In-Reply-To: <21335.1032791206@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