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 1sVd9D-00ApaR-6z for pgsql-general@arkaria.postgresql.org; Sun, 21 Jul 2024 20:27:11 +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 1sVd9B-00BrXP-7X for pgsql-general@arkaria.postgresql.org; Sun, 21 Jul 2024 20:27:09 +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.94.2) (envelope-from ) id 1sVd9A-00BrXH-Sa for pgsql-general@lists.postgresql.org; Sun, 21 Jul 2024 20:27:09 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sVd98-000kBD-Au for pgsql-general@lists.postgresql.org; Sun, 21 Jul 2024 20:27:07 +0000 Received: by mail-wr1-x435.google.com with SMTP id ffacd0b85a97d-367990aaef3so1753795f8f.0 for ; Sun, 21 Jul 2024 13:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721593624; x=1722198424; darn=lists.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=9VnpgXRU1ABSFQO9MfZ4Uvq47i267cDQj+/YqPqc3iE=; b=X/QDONe4cChSiVT1oWxKDyC5IAtA3CF9cjzUyh1YmhvdoSbq45cXxxQNjA+6IwNQic avYtbae2F2k4UhUR6XZgZz4XWpxsRyzfFJsiWo7WqnsjVqKkgKzZLdA9YdFMR8gcPqtU q473Dm/ZTVDCK2L9djRjRzAGMWoC9UxT1PHGJM81VE9mpoBcvPCfBPl2Wcz84ARaKZIB XwmAjAETGXSAlisOpPk4lMlZubmqLABYjvaAMCctKXhxlcUeI4g2YEQeyi1iOwHAOyLn UqmOJAym9mrvn6cIdQFpdeQUs1oLDbH92yeWU4W1lFc2qdoFVpxByhu8TIWMFbiL9+Br 6TZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721593624; x=1722198424; 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=9VnpgXRU1ABSFQO9MfZ4Uvq47i267cDQj+/YqPqc3iE=; b=O9kJZQt0C8C7dfT46QT2k8oWhqBkusXTCHKEWMfbDBj6VUOgzuG0PGpK3IH5bSo6h7 QTWtGzmeUC9DEOHHLMvWUfg5PbCespym4FwyaCO7bVuO7X0rOTZGZkGYGMfz12Yk7ip6 +GVLuruw9ykJk26o65v+5gcinKlv3yuQ37fd2t4gEOtQQWTHjxqisyVeEssECYxG1ttr fFgRH4R/uqbnvzb0EnTUxiiZQEZF+ZpbNoa9ep78IL9/+DW/GuMvayFhCCKnj49dE11s stszeJt8r7glE8rRobdcplm3/ipDH+59Ltwek2WY/acMck6FBkZSDAn9+1Yh7YtMB5Gt h2yQ== X-Forwarded-Encrypted: i=1; AJvYcCWb8tdJu/DpmLk4qk7N8yDP8kHEEJWROOcg4J4bgwp2naw8uXo0FdzeAUOd3i/Qwvu/R8SKxjIQ9vXrHl2K2NhSRBndfIcOjaVCavPMdzWT1fCN X-Gm-Message-State: AOJu0YyGagztxhhqwnIfG57F2NwlpIprhp/XYVY6T2mtoIf6eTJ/gDsH v5R4Yn7VNsWUTy5mk4h7xL3ustY6S32UhfqrKdtTFDcaLfPFyBYuUFdZOX8cWsERAieaFS6GY5q RNrfAiEzOfYZwU4/G0ggWo21KcJ0= X-Google-Smtp-Source: AGHT+IES7SKD+XlA7XCfOt6RLdzr2AEJ7FBD2BcXz2KOPAFtge7Rl0dN6oSio+s3stleDRPiXjxBo2kwzfUgNVcnlCw= X-Received: by 2002:a05:6000:1ac8:b0:369:c6d7:7b93 with SMTP id ffacd0b85a97d-369c6d78197mr3087760f8f.28.1721593624339; Sun, 21 Jul 2024 13:27:04 -0700 (PDT) MIME-Version: 1.0 References: <80c9b0ea-c874-40ad-a006-fb1eb37464c2@aklaver.com> <44b44ece-dce6-4b4f-b751-8787a5a071e0@aklaver.com> In-Reply-To: <44b44ece-dce6-4b4f-b751-8787a5a071e0@aklaver.com> From: Thomas Munro Date: Mon, 22 Jul 2024 08:26:27 +1200 Message-ID: Subject: Re: Windows installation problem at post-install step To: Adrian Klaver Cc: =?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?= , pgsql-general@lists.postgresql.org, Sandeep Thakkar 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 Mon, Jul 22, 2024 at 7:29=E2=80=AFAM Adrian Klaver wrote: > On 7/21/24 12:00, Ertan K=C3=BC=C3=A7=C3=BCkoglu wrote: > > My main purpose was and still is to reach EDB people using the forum an= d > > let them know about the problem. > > I believe it is something to be fixed for future installations. I would > > like to provide additional information if needed. > > You could try a back door method and post here: > > https://www.postgresql.org/list/pgadmin-support/ > > pgAdmin comes from EDB also, maybe someone on that list could pass your > issue on. I guess this is where EDB installer issues should go: https://github.com/EnterpriseDB/edb-installers/issues It seems like there are about 3 different problems associated with the new Turkish_T=C3=BCrkiye.1254 locale name: 1. EDB's installer apparently has a problem with the encoding of the name of the locale itself. Looking at your log file with my pager, it shows: The database cluster will be initialized with locale "Turkish_Trkiye.1254". I think that means that it had the name of the locale encoded as "CP437" at some point (where =C3=BC is 0x81, apparently[1]), but then somewhere it was reencoded to the sequence 0xc2 0x81 (shown by my pager as ), which is nonsense. The way to get there would be to believe falsely that the source encoding was Latin1, I guess. I'm not even sure what encoding it should be giving to initdb (maybe the ACP of your system?), and in fact it's a bit undefined for PostgreSQL at least, but that seems to be double-confused. I suspect the solution to this might be for EDB's installer to somehow convert your selected language to the modern short code format, like "tr-TR". Those are pure ASCII. I don't know where it should get the list from. 2. Some existing database clusters which had been installed with the name "Turkish_Turkey.1254" became unstartable when the OS upgrade renamed that locale to "Turkish_T=C3=BCrkiye.1254". I'm trying to provide a pathway[2] to fix such systems in core PostgreSQL in the next minor release. Everyone affected probably already found another way but at least next time a country is renamed this might help with the next point too. 3. I'd also like to teach initdb to use BCP47 names like "tr-TR" instead of those names by default (ie if you don't specify a locale name explicitly), and have proposed that before[3] but it hasn't gone in due to lack of testing/reviews from Windows users. It seems like that doesn't matter much in practice to all the people using the popular EDB installer, since it apparently takes control of picking the locale and explicitly passes it in (and screws up the encoding as we have now learned). As for your immediate problem, you can also use initdb.exe directly to set up a cluster, and tell it to use locale tr-TR. I can't recommend all the switches you'd need to pass it for best compatibility with the EDB GUI tools though, but maybe the ones from your log. [1] https://en.wikipedia.org/wiki/%C3%9C#Computing_codes [2] https://www.postgresql.org/message-id/flat/CA%2BhUKGJTOgnTzu4VD6Am0X6g6= 7atkQHFVk%2BC-w5wkGrGiao-%3DQ%40mail.gmail.com#556557efd6b83cd7a336b62507ef= e347 [3] https://www.postgresql.org/message-id/flat/CA%2BhUKGJ%3DXThErgAQRoqfCy1= bKPxXVuF0%3D2zDbB%2BSxDs59pv7Fw%40mail.gmail.com