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 1vzyl9-001V3F-1k for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 15:12:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vzyl6-004CXc-37 for pgsql-hackers@arkaria.postgresql.org; Tue, 10 Mar 2026 15:12:33 +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 1vzyl6-004CXR-2B for pgsql-hackers@lists.postgresql.org; Tue, 10 Mar 2026 15:12:33 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1vzyl5-00000001Sy4-0UxR for pgsql-hackers@postgresql.org; Tue, 10 Mar 2026 15:12:32 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-b941bb3e23cso827431966b.0 for ; Tue, 10 Mar 2026 08:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773155550; cv=none; d=google.com; s=arc-20240605; b=bJatCqk3ejmNo67udX58A7JrlXdXdMquGn0b69C7TaGAINF6TwDt5GnNL+xf13mIVZ cN4rz8flsKQDW8ihvpt8wzQpA/cy1G1ZAMcHvIajdZKU+CckvL5LySEFAoSqcPdf9qYh 9hVqDpYvJH5pK9l/haNIKUIyFzEMTLef5n0TmhGxJDIHo9ILyvWo2jvVzCTB02+7uVa5 RGoQBr4SqWD1zb9EVbALF4l9x3z+O/v7b06vmQg56jtNUZ2rOB+2Y7ZSG98iUML6w2or nLR/uZO/Cm1w4WzfIizhxUQweJb4CSbFrYPNhSqfvZptuhOkfz7AHPhfeRotRkW+P4CX vGWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LLFkY68y4/StTZWiTz4FiEl3gng6FGWSN1VHDZBqQxI=; fh=2zSQZfKdmhwzAOqZC07nBJoHnw6XGaE3I4pRylMnrzM=; b=GirUEvTfu4XmCoawiqxbcBU8STqjMVqC5iLcO6VW5HOoZn42vzUA46NjDgn6eF6Hbe +9olRcXLHSsL8Kvoaqaw39906zl+7pqz1vU/Df8FA1nIyRMwIJY6uJGyCQX+vCdop7Fj 2GqTTvy2EohLuMFAz2t8F+eo1TEvKo8txTPAHhtR1DHE/7BpPQjrUjvs/JZkThgXsGcE SL9qT4i2LOTvK+g3DKkn9wHysGPBuVYA9+NRJmjfV6CY2noVxddGEekj1lrZgDJh0t9E LTohByNVnYvnNX1yGsHnupyo7Rq9W4gZtukIbQBJ0kD2kfozb1Yy2/H8KrMApYJ+nx1H mPMA==; darn=postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773155550; x=1773760350; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=LLFkY68y4/StTZWiTz4FiEl3gng6FGWSN1VHDZBqQxI=; b=X9MBEDnVBQgmtlwTdFwyPzkNtWeZkFS8xiPX+TLw1gBDcf+CsYYp/fN35pDddbEN0i OOX87b033roe6GAmOD4egTrreQVvWHYVRwHcEXdWbK4s4WxRNP70h7DzybpyQHCaplOd DJbC03BZrXz1/rhsMe0xbMWXIGCRCG7k8kJLRiwyrLb14wJExq0xJ27Y3gxGot4adyl/ BNpX0+q/Cq3YTKW9rkIyVGyQpySvSZcRtDijvXKLlFMaJDBWv+Gdhbjtoo4gkIwiC3gC eHL+PlrPaNiFzdHepeTciQ2D/zYt4uaiQDS4no0RMDGhgjWe65aMzY3D84Am5ugs+avR H6OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773155550; x=1773760350; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=LLFkY68y4/StTZWiTz4FiEl3gng6FGWSN1VHDZBqQxI=; b=WJ9s54V7wBG5TDwM+9IJ770Jrda3pZI6ggHM7mkNt3TbOikAHNuZUxjQ7HdIE4ONzG lZqBBDWLHQUVmIO9nijFAMENbVaq4Aqt3K5baHIKdYHeC2S/9Di8VWB1LBK+mkOSTbH+ ClGBCQHiqxLudu/yUYlrs4aVbSkMuMTeMVq36sr4wFy7kXJb77OdLNSU+FTOgsA7J7Bi T8w5EXyo2jH2QJFKaJ6OVXBo3SlUHNbbfTCfgD086K7EGf8BxOYuYK4beCUmyA9JlRxD e/fayT+ODo//r0gQEM3nt5iFDUL51bqqL/xkkV+aKevl4wYS9EuDa1d8KgeTRum0IL36 eUqQ== X-Gm-Message-State: AOJu0Yxyk2rjZsshS3QXjr8vKye/3OO15Y46cFkbcgCe6/mLHohx746S Vg6PAJ3hzM2VO4P/DaLudxp6OvHr51k6f2jzegwAyPrCGiQ1IFP2sfHlqShk8CvZGN7W9hyN1NT vqlhs2L1yAHGm7v9mc6RUTpcfyFDu92AIdg== X-Gm-Gg: ATEYQzxh6oy7GGGyuQtjo+95PHldLYRwKhPH+L7XCFBzMHQDx9y/hfq2TmMnsRBPH+E qoFRAScfOA8lZCq66FA8TbkgA5zM2gRWL/9ZuIQi5+RlC16lYTCSAfcBjKzNXtewC7V8THky3A7 WuJoMhjDBbmHkD44Jc60/O3ZK0fBmc5t9XAx5VlTLxIVPtTMyfRVXhqeV8bwJomb8fVK9tc8rIM MM1DZDXP3KczHb1iGIHvL7QimOrRAOETXXhX1IuXDpO9Si3ebk9F8Zjg6fvHPFqXG8aZUzUV4AP 7cFzGYaEsbQMUZ9cHu36ASn7gfxPwy88Ly7fLDI= X-Received: by 2002:a17:907:9719:b0:b83:1433:78de with SMTP id a640c23a62f3a-b942da4b8ccmr867281766b.12.1773155549303; Tue, 10 Mar 2026 08:12:29 -0700 (PDT) MIME-Version: 1.0 References: <47e1b4f72fe732c5ae85c6cf2c085b4e99a10120.camel@j-davis.com> In-Reply-To: <47e1b4f72fe732c5ae85c6cf2c085b4e99a10120.camel@j-davis.com> From: Robert Haas Date: Tue, 10 Mar 2026 11:12:16 -0400 X-Gm-Features: AaiRm50h_7-VWtFRbakU1_144TWR1Td1-ow7KfIkfygpVPVwJekDs2wxjFgjveA Message-ID: Subject: Re: Change initdb default to the builtin collation provider To: Jeff Davis Cc: pgsql-hackers@postgresql.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Oct 31, 2025 at 5:30=E2=80=AFPM Jeff Davis wrot= e: > The attached patches implement a more modest proposal which does not > conflict with Peter's objection about the display order: > > 0001: If the encoding is unspecified, and cannot be determined from the > locale (i.e. the locale is C), then use UTF-8 rather than SQL_ASCII. I don't know if this is exactly the right proposal, but I think it's probably appropriate to start gently pushing people towards UTF-8 rather than anything else. Unicode has largely won, AFAICT, and the use cases for anything else are increasingly narrow. I don't think we should try to be coercive, but there's a reasonable presumption that people who haven't said what they want probably want UTF8. > 0002: If the provider is unspecified, and the locale is C or C.UTF-8, > then use the builtin provider. I'm much less convinced about this idea. I think the number of people who will be unhappy about the less-user-friendly sort order changes is probably quite high. It's reasonable to want something more stable and better version-controlled than libc, but switching to a simple code-point sort seems like a high price to pay for that. --=20 Robert Haas EDB: http://www.enterprisedb.com