Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wKKVm-000rO4-1F for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2026 18:28:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wKKVl-00DKb1-12 for pgsql-general@arkaria.postgresql.org; Tue, 05 May 2026 18:28:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wKKVk-00DKan-2x for pgsql-general@lists.postgresql.org; Tue, 05 May 2026 18:28:48 +0000 Received: from dverite2024.planet-service.net ([185.16.44.252] helo=mail.verite.pro) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1wKKVi-00000000M6m-0BYt for pgsql-general@lists.postgresql.org; Tue, 05 May 2026 18:28:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=manitou-mail.org; s=mail; t=1778005723; bh=lNAjqQ//Xf0jsxA0gCrW8XcMxhg6B1uUqSJ879G7WNY=; h=From:To:Cc:Subject:In-Reply-To:Date:From; b=dQOo/KhMgt5s2UdPzVQeM/GXT/QhmLV++q7c6ask28OowkCXcZedz1RWzj4xrxQb6 G22fK53Yvh0aWaJi1RVyTdMm0NjVKF/oTZAidXZLyAfCcOKtULvLCq5kBXn5Q1YjGd Jv0BhiF+9J7ymqfm8rEBiOysz2fz/YdBeGU8XLJXZCJLIKfc8nflW+yMg36eVOa8Xb IBW3kxL2kLQeNnBHJeyZsr70EEYjAuQFAdo7cKfIqmM9BH4bUFdz8Wp0GZx0YYnf+7 8vde0ucLDQ/D6guGuARtL/aYqowoWc23w12oM2DpcTC6YkGUw7+c48XE2DZ3iUU7Nv Zlpke9yOfbfog== Received: by mail.verite.pro (Postfix, from userid 1000) id A9E212C604C; Tue, 5 May 2026 20:28:43 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "Daniel Verite" To: "Laurenz Albe" Cc: Ron Johnson , pgsql-general@lists.postgresql.org Subject: Re: Choosing default collation/ctype In-Reply-To: <7a6954c2dfe3f224b4c45aa59f7fb6e951ce93b0.camel@cybertec.at> Date: Tue, 05 May 2026 20:28:43 +0200 Message-Id: <555d1594-87fd-44ef-be4d-ef001ef5d2e1@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe wrote: > But if you are using "C.UTF-8", the semantics of upper() can change > between versions, if Unicode is upgraded.=20 Oh I see. Sure, "C" is not affected by that. > That bears a residual risk > of OS upgrades breaking indexes on upper(col). OS upgrades don't count in the case of the builtin provider, but major Postgres upgrades, yes. > I'd say that the small benefit of better case conversion isn't worth > the risk. I'd chose "C", and use a natural language collation explicitly > on columns where these things matter. While I understanding the reasoning, I'm of the opposite opinion. To me the lack of Unicode support in "C" is too annoying to make it a blanket recommendation as the default locale. Best regards, --=20 Daniel V=E9rit=E9=20 https://postgresql.verite.pro/