Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7F5E6B5D91F for ; Wed, 22 Jun 2011 07:02:32 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 26606-08 for ; Wed, 22 Jun 2011 10:02:26 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iy0-f174.google.com (mail-iy0-f174.google.com [209.85.210.174]) by mail.postgresql.org (Postfix) with ESMTP id 40C88B5D8BD for ; Wed, 22 Jun 2011 07:02:26 -0300 (ADT) Received: by iyb12 with SMTP id 12so533667iyb.19 for ; Wed, 22 Jun 2011 03:02:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=o8vETMTfp7u2MOyOhjIhfvisr9cgGxEF6GchjDy8p08=; b=nNUkeZ1d6V8ttouXHmU3fz5f5VpwaViWc6S6pOHnQFNJJgoXkxoWC9SGYARWhaIruH KrA0ibC09Ansq48suwmOXrPwtki+KaUCEkIpthRD2EzofrsxccCj4NgDPD3q7VjFGRmJ LMVCcWRru9/d4497ogfIlJCVZlzzuFBgBGGT8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=J8wzVQQX4bVUd/6G1tVi6T/zmplYkhLf/YPkcIwbQWaRDbaWBmOJHYldKQdzoL4DXV nzpNeLbz9Ip/UMMyoAZPZeYdWDz4Khdmac8GizP3MkMMhaBAtjvwpU81aww6/bkanJ3/ ckdwzmlQaX98Y5sEwPu6VoHhVFPj7/eAgCeZQ= Received: by 10.42.136.10 with SMTP id r10mr555454ict.66.1308736946113; Wed, 22 Jun 2011 03:02:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.1.141 with HTTP; Wed, 22 Jun 2011 03:01:46 -0700 (PDT) In-Reply-To: References: From: Pavel Stehule Date: Wed, 22 Jun 2011 12:01:46 +0200 Message-ID: Subject: Re: a strange order by behavior To: Peter Eisentraut Cc: Eyal Wilde , pgsql-sql@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201106/78 X-Sequence-Number: 35544 Hello Peter > Pavel suggested using a collation of ucs_basic, but I get an error when I > try that on linux: > $ createdb -U u1 --lc-collate=3Ducs_basic -E UTF-8 test > createdb: database creation failed: ERROR: =C2=A0invalid locale name ucs_= basic isn't this a bug in collations? Regards Pavel > I was able to create the db with --lc_collate=3DC and get case-sensitive > sorting that treats spaces 'correctly,' but I have no idea how reliable t= hat > is with multibyte characters and it almost certainly doesn't handle accen= ted