Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 50A5AB5DBC9 for ; Thu, 23 Jun 2011 02:06:05 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 63226-01 for ; Thu, 23 Jun 2011 05:05:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.22]) by mail.postgresql.org (Postfix) with SMTP id 91596B5D944 for ; Thu, 23 Jun 2011 02:05:58 -0300 (ADT) Received: (qmail invoked by alias); 23 Jun 2011 05:05:56 -0000 Received: from a88-115-218-165.elisa-laajakaista.fi (EHLO [10.0.0.101]) [88.115.218.165] by mail.gmx.net (mp010) with SMTP; 23 Jun 2011 07:05:56 +0200 X-Authenticated: #495269 X-Provags-ID: V01U2FsdGVkX18A/MBdI/QAWLNUHZtm+TVGCDJY3IKHafJVUMahaa qlajr/7A2BY6C5 Subject: Re: a strange order by behavior From: Peter Eisentraut To: Pavel Stehule Cc: Samuel Gendler , Eyal Wilde , pgsql-sql@postgresql.org In-Reply-To: References: <1308773527.10498.7.camel@vanquo.pezone.net> Content-Type: text/plain; charset="UTF-8" Date: Thu, 23 Jun 2011 08:05:54 +0300 Message-ID: <1308805554.22303.0.camel@vanquo.pezone.net> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.909 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/88 X-Sequence-Number: 35554 On tor, 2011-06-23 at 05:57 +0200, Pavel Stehule wrote: > 2011/6/22 Peter Eisentraut : > > On ons, 2011-06-22 at 02:39 -0700, Samuel Gendler wrote: > >> Pavel suggested using a collation of ucs_basic, but I get an error > >> when I > >> try that on linux: > >> > >> $ createdb -U u1 --lc-collate=ucs_basic -E UTF-8 test > >> createdb: database creation failed: ERROR: invalid locale name ucs_basic > > > > ucs_basic is a collation name, which is an SQL object. The argument of > > createdb --lc-collate is an operating system locale name. You can't mix > > the two, even though they are similar. > > > > ok, what I can to select, when I would to use a C like default order? createdb --locale=C --encoding=UTF8