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 1r3LlT-003HLx-7M for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Nov 2023 19:41:31 +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 1r3LlP-0023aH-Dj for pgsql-bugs@arkaria.postgresql.org; Wed, 15 Nov 2023 19:41:27 +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 1r3LlP-0023Z7-1M for pgsql-bugs@lists.postgresql.org; Wed, 15 Nov 2023 19:41:27 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r3LlH-006bu8-V1 for pgsql-bugs@lists.postgresql.org; Wed, 15 Nov 2023 19:41:26 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-4084b0223ccso55980685e9.2 for ; Wed, 15 Nov 2023 11:41:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1700077277; x=1700682077; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=9tMV+ffq3yr3EL8/ZNAntGb+r3dBqkj2J8iBk6Xp1z4=; b=omRxSgX3Bez7eF3r1tm0/6LlkNeabS73yKRfLHDzlIhNW1Fkatkhw7/RYIkTXwTSt7 Azxz4TuBgKMPbTO4yHhqTDkRi1NnvRzesO2oSHgHoZ/n6U03QwCPPANoSRFWKtKJ2V3v evvg/CulWhsYHxEbU7DxAGwd2wlJZ3q8djfvajePxYS4Lyu1k4VPMvGZu8/bTfDI0lV7 SfnM6oc5UvRLw7lERnmCiSka1Chz7sIXa2Y1K0Q5kyF9LLVBvhzS6K+BVbM8yAO6XHJv IX2PDsMKrGg+6c5TN69Pl+lGlSC+gjIrjy73w80B2s5lI5M2O8TYarwXEziM4ZAEKM4Y s/0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700077277; x=1700682077; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=9tMV+ffq3yr3EL8/ZNAntGb+r3dBqkj2J8iBk6Xp1z4=; b=Ik0708kEG5QX5CbPk0tm5juFvK9TCMFf7k32Yik/hwKLvgXwJd2RM2vHM67dHolARA Ry0sU7I1586lqX/neEQWqMkLQ5S0rX8i8UJX6jLJaQu1Iw3ek6dkVXqg8MJvpQVf0boR sq5yYXSQEF+egWrV17bcYDIpxBHqA+QQjmYh9G73MI61QHjqDBvj8nbC0ZEuFWO9ICia xvuFG2EmIe/9zUUM0tcaQJM0v2cZp6Y6dt8Dn0/OBRU5Nn/qxeH+MI7zwltPLN4SAXr7 KP5cKbRSiy10uV89tsORz6AWE+a3W3AbqDDMuLx8cHyuH6VSowd7/LG42N1geV2QC1Op 2emA== X-Gm-Message-State: AOJu0YyjJZ16EgCt7+fVl4qfTpm5Fa5XMUCCy3aB2ukIdVPNIHmn4VLh DpbcpQiM4Ta/g5LVcZmxpM7ERw== X-Google-Smtp-Source: AGHT+IHjFnSK5NB1Myu2CMcYim7UB9JaR+Gr4sDvvpcqdF23TM2SVe5bXKUXhybw1VjMY0TPOPw4hA== X-Received: by 2002:a05:600c:3b1f:b0:406:3fda:962c with SMTP id m31-20020a05600c3b1f00b004063fda962cmr10865445wms.31.1700077277079; Wed, 15 Nov 2023 11:41:17 -0800 (PST) Received: from localhost.localdomain (p50992f7c.dip0.t-ipconnect.de. [80.153.47.124]) by smtp.gmail.com with ESMTPSA id q9-20020a05600c330900b0040a3f9862e3sm1963687wmp.1.2023.11.15.11.41.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Nov 2023 11:41:16 -0800 (PST) Message-ID: Subject: Re: BUG #18196: Databases Created in Turkish Language Will Not Run on the Latest Version of Windows From: Laurenz Albe To: Halil Han Badem Cc: pgsql-bugs@lists.postgresql.org Date: Wed, 15 Nov 2023 20:41:10 +0100 In-Reply-To: References: <18196-b10f93dfbde3d7db@postgresql.org> <08bd5716d186595a226268a75c0fc24df89daa3a.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2023-11-15 at 21:47 +0300, Halil Han Badem wrote: > In this case, the service starts, but you cannot establish a connection t= o the database. > In other words, it gives the following error. This error is expected beca= use the > database was created with Turkish_Turkey.1254. Due to the name change to > Turkish_T=C3=BCrkiye.1254, it cannot find the local name. >=20 > failed: FATAL: database locale is incompatible with operating system > DETAIL: The database was initialized with LC_COLLATE "Turkish_Turkey.1254= ", which is not recognized by setlocale(). > HINT: Recreate the database with another locale or install the missing lo= cale. That was to be expected... I cannot think of a good solution except to be Microsoft to unbreak their software. If you have not performed the Windows update on a system yet, and you are bold enough, you could try the following hack: - connect as superuser - modify the catalog table with UPDATE pg_database SET datcollate =3D 'Turkish_T=C3=BCrkiye.1254', datctype =3D 'Turkish_T=C3=BCrkiye.1254' WHERE datcollate =3D 'Turkish_Turkey.1254'; - stop the PostgreSQL service - edit "postgresql.conf" and change "Turkish_Turkey.1254" to "Turkish_T=C3= =BCrkiye.1254" everywhere - install the Windows update - start the service - in case the collation changed, REINDEX all indexes on string expressions A safer option would be to dump the database before the upgrade and restore the dump to a newly created cluster after the upgrade. If you have used "Turkish_Turkey.1254" as explicit column collation or somewhere else in your code, you will still run into problems. This should really be fixed by Microsoft. Yours, Laurenz Albe