Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifGdz-0006vG-J2 for pgsql-general@arkaria.postgresql.org; Thu, 12 Dec 2019 05:04:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ifGdy-0004Pe-5L for pgsql-general@arkaria.postgresql.org; Thu, 12 Dec 2019 05:04:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ifGdx-0004PX-OC for pgsql-general@lists.postgresql.org; Thu, 12 Dec 2019 05:04:05 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ifGdu-0002NL-Sh for pgsql-general@lists.postgresql.org; Thu, 12 Dec 2019 05:04:04 +0000 Received: from [192.168.127.1] (port=20230 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ifGdr-000Mb2-Rn; Thu, 12 Dec 2019 05:03:59 +0000 Received: from localhost ([127.0.0.1]:54453 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.92.3 (FreeBSD)) (envelope-from ) id 1ifGdr-000880-ND; Thu, 12 Dec 2019 05:03:59 +0000 From: Andrew Gierth To: Rich Shepard Cc: pgsql-general@lists.postgresql.org Subject: Re: Encoding/collation question In-Reply-To: (Rich Shepard's message of "Wed, 11 Dec 2019 11:44:29 -0800 (PST)") Message-ID: <875zimb0j8.fsf@news-spur.riddles.org.uk> References: <24866.1576092317@sss.pgh.pa.us> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (berkeley-unix) Date: Thu, 12 Dec 2019 05:03:59 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Rich" == Rich Shepard writes: Rich> I doubt that my use will notice meaningful differences. Since Rich> there are only two or three databases in UTF8 and its collation Rich> perhaps I'll convert those to LATIN1 and C. Note that it's perfectly fine to use UTF8 encoding and C collation (this has the effect of sorting strings in Unicode codepoint order); this is as fast for comparisons as LATIN1/C is. For those cases where you need data to be sorted in a culturally-meaningful order rather than in codepoint order, you can set collations on specific columns or in individual queries. -- Andrew (irc:RhodiumToad)