Re: order by text-type : whitespaces ignored??

From: Richard Huxton <dev(at)archonet(dot)com>
To: peter pilsl <pilsl(at)goldfisch(dot)at>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: order by text-type : whitespaces ignored??
Date: 2006-12-13 08:53:29
Message-ID: 457FBF89.6000608@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

peter pilsl wrote:
>
> I just get my mind crossed here:
>
> I do a simple select with order on a text-type. In my opinion entries
> with leading spaces should be either first (or maybe last) in the list.
> But in my select the whitespace just seems to be ignored:

That'll be down to your locale settings. You'll need to re-initdb to
change them I'm afraid. It's locale=C that you want.

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Anton 2006-12-13 09:04:57 Re: [pgsql-ru-general] index на таблицу с ~ 700 000 записей: чем занят постгрес???
Previous Message Rafal Pietrak 2006-12-13 08:49:04 A VIEW mimicing a TABLE