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 1ihVm9-0001sd-CG for pgsql-general@arkaria.postgresql.org; Wed, 18 Dec 2019 09:37:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ihVm7-0007NO-RB for pgsql-general@arkaria.postgresql.org; Wed, 18 Dec 2019 09:37:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ihVm7-0007K2-DB for pgsql-general@lists.postgresql.org; Wed, 18 Dec 2019 09:37:47 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ihVm0-00054l-Lz for pgsql-general@lists.postgresql.org; Wed, 18 Dec 2019 09:37:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1576661857; bh=8zGqJsNNZwIbsEfhUPa1PaCpHRaHlQ6yf9grfCToV+4=; h=X-UI-Sender-Class:Date:From:To:Subject:References:In-Reply-To; b=b3OJ3SRW+mL+TeQgL/I7ze9hOgTp1DZkl/MY278sGP5w0amlXBuFJhRCWMZn2gxv9 Z6HTG6IFGs/gtx+kMq74nA2aUaXXn0B+tHH7AvtQcEVAhg3mAWidDJ2kW3F2PWNQ5g UTZNJjiLBPrBT8hf//9BHu7Sfa2TVW7ir+OfSGbY= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from hermes ([78.55.166.29]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MPXd2-1iLyU70ZW6-00MbOu for ; Wed, 18 Dec 2019 10:37:37 +0100 Received: from ncq by hermes with local (Exim 4.92) (envelope-from ) id 1ihVlv-0001Ok-V1 for pgsql-general@lists.postgresql.org; Wed, 18 Dec 2019 10:37:36 +0100 Date: Wed, 18 Dec 2019 10:37:35 +0100 From: Karsten Hilbert To: pgsql-general@lists.postgresql.org Subject: Re: Encoding/collation question Message-ID: <20191218093735.GA472@hermes.hilbert.loc> References: <24866.1576092317@sss.pgh.pa.us> <875zimb0j8.fsf@news-spur.riddles.org.uk> <20191212093713.GA3164@hermes.hilbert.loc> <25766.1576157753@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25766.1576157753@sss.pgh.pa.us> Ma_X_il-Followup-to: d Re_X_turn-receipt-to: Karsten.Hilbert@gmx.net Di_X_sposition-Notification-To: Karsten.Hilbert@gmx.net X-Confi_X_rm-Reading-To: Karsten.Hilbert@gmx.net X-Pri_X_ority: 2 (High) User-Agent: Mutt/1.10.1 (2018-07-13) Sender: X-Provags-ID: V03:K1:MvVAPL9fEmMfITKw5QVTrZK+gwSvxq6Q0NCoMX7kbB0YWuVqWvD dihOFGySOE+q7Z7Z5CfBlhEipzy+ke36lsfe68Ek1tszRRMwUpYWwvNO/YeTdhAXwyfh/0w kI4Z481hK4/ZAKGpE+fgzLADfMOoFlM4CDj4cOT/tY/zdYcU1KyvHn02M3Xdci9cj4veZko 5GG+Nt7M/Abikbv/abopA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:r3weZXfEFNw=:6xP1TMBnC85oISKsSafJls Jye5ze1SouuUQ80p5Shp8bADfQjqjVGvZu4NZsfPOvoqv8wmblK7QqVLkC6gn2XsC0az3i5wF LFtUQbtzIvF02jOg+GhVV6kQrIEFG22B356ag/wLdTQ3qrY7SWctfBzLvO34y+3kpCoi8k5tl VXpmV4cYQzciQ77CFHta3SwDKXy81Pd2T/SjG2Cqx4oY3d7+VSLHzvQVTSqpH5JM3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Ze0ZB6LtPb/dIdOVeaY= Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Dec 12, 2019 at 08:35:53AM -0500, Tom Lane wrote: > C collation basically devolves to strcmp/memcmp, which are as standard > and well-defined as can be. If you're happy with the way it sorts > things then there's no reason not to use it. So that's the collation to use when "technical" sorting is required (say, when uniqueness does not depend on the notion of culturally equivalent characters). > It's actually all the *other* collations where you should worry about > their behavior being a moving target :-(. But then that is to be expected. Thanks, Karsten =2D- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B