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 1sVxUP-00CWTC-RN for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 18:10: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 1sVxUM-005Mcj-78 for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 18:10:22 +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 1sVxUJ-005McK-VF for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 18:10:22 +0000 Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVxUB-000u4R-PO for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 18:10:18 +0000 Received: from compute8.internal (compute8.nyi.internal [10.202.2.227]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D42AC1140263; Mon, 22 Jul 2024 14:10:09 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute8.internal (MEProxy); Mon, 22 Jul 2024 14:10:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1721671809; x=1721758209; bh=KdItCe/Evf5OrVhP1dSv/b0de66pPyaTpvg9n07GThY=; b= IrYor27FTm9p67yJqtTCrwkTbneYqm2yKgkTJhvjl6NRjnJafpblCyRWGqlm6AKu Zpo3oTnexQ/JhG1rO7c+5sMw4td8LibLT6h+wDp2l4putZbVRGnvQKjFV61t38dM 2tg/OOjX1T7Pw2vwixz5grTjYu+rR+771kfeSXHhzOeXSslQJxvOtKju1AQ00rbU UdMDAduZa1nkmJSEuFzdyzbm6EhtQ1fsZrKmerM/3qK6Yo0Vuw2VvPYdDU0T/E0t 87u2JtsHgKgm1NJeUqkeaYvmPyJmTpTjIe5BG6ulgBjJ1n2eSKc9UCzzUQ+/Jj9J RbgXVXYj9+0tgwlfXpaHFA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1721671809; x= 1721758209; bh=KdItCe/Evf5OrVhP1dSv/b0de66pPyaTpvg9n07GThY=; b=h peoARtTG33uOxKk4oAou8i/koKl0b0Xb+UP3/JHgDYyff3WfJciUFbF+VOpmHg1V ptXot5NqlIMZsuG3TYJOBNRlXo1DCknEH8PNHIBEAVauagBzZxqnXMHL4lvGYsQC bPhfqa2Vboc73Qr2kB5x9j1ETeqX80gLRP1M+JBjqdC8Pqja6HHcny0j3xfQ3tET yuKkpM+yRFSd04KIk9PyFisaptGJnlBt6boeRA7TwD9SJWwjeNT/iRSAj1hF6HrL ocxB6S23FL0GsvJ98ycco8wlF+GFvZRCzgG/COFirWNC7v67997wErYPumGkI9Y/ nkojqDbLLU1XO8IeCHaSw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheejgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtvdejnecuhfhrohhmpeetughr ihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtg homheqnecuggftrfgrthhtvghrnhepfeegfeeiuedtgffgteeggfehkeejheetieeliefg teeikeejvdeiveeigfehvedtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jul 2024 14:10:08 -0400 (EDT) Message-ID: <34aefaae-7c57-4593-af82-8c83eb31f3ec@aklaver.com> Date: Mon, 22 Jul 2024 11:10:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Windows installation problem at post-install step To: =?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?= Cc: pgsql-general@lists.postgresql.org References: <80c9b0ea-c874-40ad-a006-fb1eb37464c2@aklaver.com> <44b44ece-dce6-4b4f-b751-8787a5a071e0@aklaver.com> <011a5254-4abb-460b-bd02-92e8dfc0e5ea@aklaver.com> <9cc12221-ba75-4ba0-803f-51be5c8f1525@aklaver.com> <4c21a115-ec58-4e79-86b8-8626bd307e02@aklaver.com> Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 7/22/24 10:51 AM, Ertan Küçükoglu wrote: > Adrian Klaver >, 22 Tem 2024 Pzt, 20:37 tarihinde > şunu yazdı: > > What is the command you use to restore the pg_dumpall file? > > > within psql I run \i > > template1 should not be dropped in the pg_dumpall file. > > Is there output that shows that happening? > > > -- > -- Databases > -- > > -- > -- Database "template1" dump > -- > > -- > -- PostgreSQL database dump > -- > > -- Dumped from database version 16.3 > -- Dumped by pg_dump version 16.3 > > SET statement_timeout = 0; > SET lock_timeout = 0; > SET idle_in_transaction_session_timeout = 0; > SET client_encoding = 'UTF8'; > SET standard_conforming_strings = on; > SELECT pg_catalog.set_config('search_path', '', false); > SET check_function_bodies = false; > SET xmloption = content; > SET client_min_messages = warning; > SET row_security = off; > > UPDATE pg_catalog.pg_database SET datistemplate = false WHERE datname = > 'template1'; > DROP DATABASE template1; > -- > -- Name: template1; Type: DATABASE; Schema: -; Owner: postgres > -- > > CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UTF8' > LOCALE_PROVIDER = libc LOCALE = 'Turkish_Turkey.1254'; > > Above lines are taken from the dump file itself and it does indeed drop > the template1. I think this is because this is a cluster dump. It is because you specified -c to the pg_dumpall command. This cleans the database you are restoring to by dropping the existing databases, roles and tablespaces before restoring the objects in the file I am getting out of my depth here, but I am pretty sure that: ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'Turkish_Turkey.1254' is not going to work. That you will need to change the locale to a Turkish UTF8 name. > Later it tries to create a new template1 and that command causes an > error because of Windows locale name. > > > Was template1 dropped in the Windows Postgres instance? > > > No. It still is there. > > BTW dump is taken using the below command line on Windows system. > "C:\Program Files\PostgreSQL\16\bin\pg_dumpall.exe" -U postgres -h > 127.0.0.1 -p 5432 -c -f "c:\yedek\cluster.dump.sql" > > Thanks & Regards, > Ertan -- Adrian Klaver adrian.klaver@aklaver.com