Re: Stripping white-space in SELECT statments - Mailing list pgsql-sql

From Tom Lane
Subject Re: Stripping white-space in SELECT statments
Date
Msg-id 21335.1032791206@sss.pgh.pa.us
Whole thread Raw
In response to Re: Stripping white-space in SELECT statments  (Thorbjörn Eriksson <thorbjorn.eriksson@ec.se>)
List pgsql-sql
Thorbjörn 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


pgsql-sql by date:

Previous
From: Thorbjörn Eriksson
Date:
Subject: Re: Stripping white-space in SELECT statments
Next
From: Aaron Held
Date:
Subject: Re: [GENERAL] Monitoring a Query