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 1uN6Ze-00Brwl-CT for pgsql-general@arkaria.postgresql.org; Thu, 05 Jun 2025 09:07:46 +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 1uN6Zb-006HYn-16 for pgsql-general@arkaria.postgresql.org; Thu, 05 Jun 2025 09:07:43 +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 1uN6Za-006HYe-MX for pgsql-general@lists.postgresql.org; Thu, 05 Jun 2025 09:07:43 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uN6ZZ-000Ki4-1o for pgsql-general@postgresql.org; Thu, 05 Jun 2025 09:07:42 +0000 Received: by mail-io1-xd36.google.com with SMTP id ca18e2360f4ac-8723a232750so62176039f.1 for ; Thu, 05 Jun 2025 02:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1749114459; x=1749719259; 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=BCFnKxCAo9KOmEYZ5WRw0uAtBYN0eLG3efVwqUSmmjs=; b=F9St2chGLfJxeFKOT4NLF19Cply6+WA8VbyCqcx4y6v8iDMUQ1/MhYtD0FSabU5Z4e tlEbLK2/ryAPIlkjerCVRfJ0h5my2SToEgSs8C7jIvJ3k5Yhuh8PrW9b1UENtfMTZwyp C1w1fzOrEGro6YIHLGH3rlllVwZmsPFDlJ2rPmbyJctOq3d0wga/sisVGTP13+4FNqPw jrAGDo8WTlou2ny7rJYlN5AywSCelTN8dcQuwtL12y3pAWRzzsNwCN+KnNTE/qynkmrZ k0rEa2vGZ0ZoRDH/Lu1eg6G3VskQJIdfhh8yE21aRw0WbW51i5SEoijtSpOxSJspn2V2 IcxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1749114459; x=1749719259; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=BCFnKxCAo9KOmEYZ5WRw0uAtBYN0eLG3efVwqUSmmjs=; b=j5zyIJC/GMQ6xdKp6YkgLpAJj9QH9SJdkqf7kZsEbFI5u/tEP100LUzkVdWHoE0QwS 9XJYhpbbal2/loOrAyP/+jsZcS9cGS4wqGOZ6jV2b7RGJVxGZD+ZjAy/RPvLdKpgkvfr fHsJJa/ctqqFqYlEROa0sPtzElccpBtYAtYRFeB0IojqIMZSHBnB646rVurBFiyNqkMc A8dMW6kyA74rmdsyd+WAoUy2d/kauKQjCgNz1cgtLxB3AC+UqvcYOY0caCwqv1AXb36V 7380MVELEZvt3Q3lYjykAFh/zGGDC1Qtv8f1YPS9zTpDyuXtYw1g3FFO4Cf7q2Pm3zJY DgJg== X-Gm-Message-State: AOJu0Yzrqhjf90yZGNIiExKT5VzrZQfPGtj3+StfPYHiXaaNGgnT0CWp 4NB/JKAVNBQpTldBE/epUQk+FcejEoIJopXnfIJvkHJqzJFlouvUeneX7igOTFf/FvSF2TCoJ/v a8bNP2bYTsmAbJW5JIQvMpH8Jmml9wWfcSdIf X-Gm-Gg: ASbGncv+eH/gkC1otFBMQOtN37tAA1QgL6HfrWebjhdpLtiowxSb9vAwx5eS5YCEcXJ PotIO9Yns0cCISJXeMubLoj88QVn/EepMsQsS5eOCtOt+KwsldnItL2+c9bkSbjLkJ8iHO5HpsH KAtx5snhnI6qNkYPmrNQvkOvtzAtem2i0U5qI= X-Google-Smtp-Source: AGHT+IElv1I8Ct98+a2rTjE1RqsgZRATfP5FIL9nh/XQFMh+F3ak8CXYMv6GwLMlvyVkaAxFTEQ1EgxYA15Q4uIS75A= X-Received: by 2002:a05:6871:2317:b0:2d4:ce45:6987 with SMTP id 586e51a60fabf-2e9bf211a32mr3977460fac.9.1749114445594; Thu, 05 Jun 2025 02:07:25 -0700 (PDT) MIME-Version: 1.0 References: <2cd2cf04ba6ea21678b893dbfebe97bcf82726dc.camel@j-davis.com> In-Reply-To: <2cd2cf04ba6ea21678b893dbfebe97bcf82726dc.camel@j-davis.com> From: Dominique Devienne Date: Thu, 5 Jun 2025 11:07:14 +0200 X-Gm-Features: AX0GCFt2ymIxfTcaa1C_f8hdDDlKHpx4OnyZ19UEyIqwIt8GOxMZPyT5fgjG2xA Message-ID: Subject: Re: LOCALE C.UTF-8 on EDB Windows v17 server To: Jeff Davis Cc: pgsql-general@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 Thu, Jun 5, 2025 at 4:52=E2=80=AFAM Jeff Davis wrote= : > > On Windows, I'm getting > I tried on windows and linux and got the same result. Thanks Jeff, for your informative email. The command work, just like it does on Linux. YET... The results are NOT the same! C:\Users\ddevienne>psql service=3Dmy17 psql (17.4, server 17.5) ddevienne=3D> select version(); version ------------------------------------------------------------------------- PostgreSQL 17.5 on x86_64-windows, compiled by msvc-19.43.34808, 64-bit (1 row) ddevienne=3D> create database "dd_v168" encoding 'UTF8' locale 'C.UTF-8' ddevienne-> locale_provider 'builtin' template template0; ERROR: invalid LC_COLLATE locale name: "C.UTF-8" HINT: If the locale name is specific to ICU, use ICU_LOCALE. ddevienne=3D> create database "dd_v168" encoding 'UTF8' builtin_locale 'C.U= TF-8' ddevienne-> locale_provider 'builtin' template template0; CREATE DATABASE ddevienne=3D> select datlocprovider, datlocale, datcollate, datctype from pg_database where datname =3D 'dd_v168'; datlocprovider | datlocale | datcollate | datctype ----------------+-----------+------------+---------- b | C.UTF-8 | C | C (1 row) Contrast that with the results on Linux, I just sent in response to Laurenz's message, and that I'll repeat below: ddevienne=3D> select version(); version ---------------------------------------------------------------------------= ------------------------------ PostgreSQL 17.5 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 8.5.0 20210514 (Red Hat 8.5.0-26), 64-bit (1 row) ddevienne=3D> create database "dd_v168b" encoding 'UTF8' builtin_locale 'C.= UTF-8' ddevienne-> locale_provider 'builtin' template template0; CREATE DATABASE ddevienne=3D> select datlocprovider, datlocale, datcollate, datctype from pg_database where datname =3D 'dd_v168b'; datlocprovider | datlocale | datcollate | datctype ----------------+-----------+-------------+------------- b | C.UTF-8 | en_US.UTF-8 | en_US.UTF-8 (1 row) Which means the same commands sometimes work, sometimes not, across platfor= ms. But when they work, they don't even yield the SAME results. Which means it's not portable IMHO... So... It is possible to have the SAME command on Windows and Linux, which yields the SAME datcollate and datctype values??? So far, such a command eludes me, I'm afraid. --DD