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.94.2) (envelope-from ) id 1v9sWo-00A03s-Nl for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Oct 2025 22:02:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v9sWm-005k0j-Jd for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Oct 2025 22:02:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9sWm-005k0a-5Z for pgsql-hackers@lists.postgresql.org; Fri, 17 Oct 2025 22:02:23 +0000 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v9sWi-002nHS-2d for pgsql-hackers@postgresql.org; Fri, 17 Oct 2025 22:02:22 +0000 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-7930132f59aso3328449b3a.0 for ; Fri, 17 Oct 2025 15:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=j-davis-com.20230601.gappssmtp.com; s=20230601; t=1760738538; x=1761343338; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=rRtpKBhacGPgEwjrdzluoEVZ+MbEbaswfdp9L4UwC+0=; b=iiYubH0V4wm6J9x2oK27CRTLygho9ejXpOj2c/x7G89R3ZmZABphgJ1NWPfeOB2lOr J/bZ58CpJF9Eqq97607YcCZpDTm5jud+MGo4c8C9b8Z42CmKadM2y55c2R7lsMsFcv+9 JQI/QqykOGqTsYSB4OxtQ5AzVe7UdIW10DybXjmgz5lmtXZcqFEKPq9hGHEoE1gEiEm+ bX9MSUtBqCDW8Xx+wUJCrKAKuczV3Oo1cCc7ap17342iR8ycMYfdCuhFzWu5rfGHtict FOxTA1TNyuaUIpgL9iumpIL7gfeOY/jCsfP1TfhDkMuyzdE+NmVbKRX7PNqPcOUR7Z0B si1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760738538; x=1761343338; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=rRtpKBhacGPgEwjrdzluoEVZ+MbEbaswfdp9L4UwC+0=; b=FLitVTd0eb/u++JeA27mF7IzBUOSNEIva6AdFy6vi2dvmmadkF6xTq+R5pbJyLLyOk Qthd4w6+qBgmGU8ik2eqS94O0Z2zETqh4r+fdFSfSXansdLVUHozQwXhHvXVPCSK7wRe fnyasHYCs5vGdtHxP7r24/FnnNn/8ZGF3R8/t+o+9Ii5Fl6IZk9VDCTi15UkPpPabj+P HGcMTxRTAtJM1pLZF9B0wfE2Y4tnNdc625IARTWnIkSfkyepcvayO00RKxSQb36lBlyh 13uslQHtULZak5rpueQXt5B0l70mIKpIcogI9u3Oc8LppGp6NJc3Rf9jiufRBxHGX2ND 5LRQ== X-Forwarded-Encrypted: i=1; AJvYcCUOFx8a4G3xDkcRlz97BzbZ42UGntWB+kmxkfaw0fXGNEf80zGQUgp8cR9FL6pxjUEJ9ZSu5l4XxzmPn9TB@postgresql.org X-Gm-Message-State: AOJu0YzGHkayfKTE9DG9J1cFnKQ9dQaTxhZq3oe12geUtKUr8d2yMH98 5Gn6oN0SsToWFE4mVIrWLixKkk9/At64vTSJ+auZMUrHJ/SbHTkqtc/2Y5blJzIwDA== X-Gm-Gg: ASbGnctFLUGOUPIDsmiPV0da4PAwu2QIIaL+GwR5/1y9tiDkSdzzg8VaRmg0gU32V35 UT+gVuKfB32BjRLEa28yLgFADQaCVsRB7Ycn8ek9Wc2rCzzmrS7Xsm1mAM4qebl6L03Tt9ll3X/ FDYJinzoZ50GSInGBrR2fvXJfDahblT+mYE3wdbqVXM5iyS8vHj+YxWOignRDsB4zaaZP5z0Yed 968oepNFq74z33VHI29x3Jf6gybnb72zuM53HsI1VPQ7K2/HAxULOSqvRk86i70ejGS2KhDPuzX N3/wP2yVTWZzNPhVTrsNGE2fDVBiKIv1XQfX2JIhzi3G7l8gES23cBSObGqrsAX5uBfo0ls/g1b wlvsms6eDa+Alokde/1KEDujbfM420QR9JHJFMJoHcSN5ktFrMfkczs/VMFhxmoSLsKprMge5fd 4YTqU7CbDYFAO5QX5NsLfrEFdyYy/MLL1w X-Google-Smtp-Source: AGHT+IEj/pmU0DjSa19vLnN/owF0Yrs3LcwfwLBWeT7iZg8n04MAWvgpKNb6MhbEEJbFjSTaUpl6lQ== X-Received: by 2002:a17:90b:28c4:b0:32e:38b0:15f4 with SMTP id 98e67ed59e1d1-33bcf86bf50mr6537786a91.7.1760738537835; Fri, 17 Oct 2025 15:02:17 -0700 (PDT) Received: from jeff-ws-bridge.lan (c-24-7-19-3.hsd1.ca.comcast.net. [24.7.19.3]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-33d5de8090csm437461a91.18.2025.10.17.15.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Oct 2025 15:02:17 -0700 (PDT) Message-ID: Subject: Re: Change initdb default to the builtin collation provider From: Jeff Davis To: Peter Eisentraut , pgsql-hackers@postgresql.org Date: Fri, 17 Oct 2025 15:02:16 -0700 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3-0ubuntu1 MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2025-10-17 at 17:23 +0200, Peter Eisentraut wrote: > I remain violently opposed to this idea.=C2=A0 I don't understand how it= =20 > could be acceptable to just not provide a good display order by > default=20 > and have everyone rewrite their queries. I assume that you favor alternative 3 listed here[1], which is to use ICU "und" as the default. Is that correct? Or do you prefer to get the locale from the environment at initdb time? One thing you may not have considered is that if the provider is builtin, a lot more users are likely to learn about and use ICU, because they will see an unfriendly display order and try to figure out why. Then they'll be more prepared for upgrades and more likely to see and respond to a version mismatch. > I don't understand.=C2=A0 We have a versioning system for ICU collations?= =20 > Does it not work? I have 27 versions of ICU installed by compiling them from source, and I compile Postgres in my sleep, so it's fine for me. But for the default user, who's never really considered collation until after they are already in trouble, having inconsistent primary keys all over the place is not a great experience. ICU is certainly better than libc, but I still think people should approach it with non-zero knowledge. Regards, Jeff Davis [1] https://www.postgresql.org/message-id/3e84e861362e971cf8c7d5e4770207d023594= 7e1.camel@j-davis.com