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 1sVuMA-00CGTN-A2 for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 14:49:42 +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 1sVuM7-00330u-Pl for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 14:49:40 +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 1sVuM6-0032zN-LC for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 14:49:39 +0000 Received: from fhigh6-smtp.messagingengine.com ([103.168.172.157]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sVuM4-000sM9-1L for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 14:49:37 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4F5AE1140267; Mon, 22 Jul 2024 10:49:35 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 22 Jul 2024 10:49:35 -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=1721659775; x=1721746175; bh=iX16jJMSCuwj0GED9I8XOKevJDl7lBhdp4uBwmHfBy4=; b= Xqj/J58xN8WTI1iWmMCrNzhWHprg6fIPZlobNtfgCyq4e5CTMR+WbKwfbnOgtiSN VChJsSlLOgX9FIuLFQNlW58WJNjQirqAp4XC5WCDPiP6AhKr9kRoAKv5/KctuZu7 eSb4qCHvtp4vyW/bdXN7gqDw/iQETNhB0MtT5nItirP2WUsbAfF2y+2Z+WHa4sxx D420YfpchkI4eViEhkt/iOOvMyLMz0CYgeOF8umgX8XX2VVCprUoKn9tlLvBBE/6 KvVVRdwi/I3hrbfYBbKhyh5PZqePN2404FdQpRUATaGNVvD8E37T+ef//pdAy3nB v3yEZ/dVWUyECvnbMuMrLg== 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=1721659775; x= 1721746175; bh=iX16jJMSCuwj0GED9I8XOKevJDl7lBhdp4uBwmHfBy4=; b=M g7ez1KKjfYBMoMf/Dv0CC0mLAlJX/yf0wmR+cn5n9fDEzmu/PiJGnMIjWlLjyKqO go6cbOeOM/eUjT8Rzk+KCG5oXa/BR9d4pg9dlyoUiqstVjbxxRHWBwlYVHTaDmdP tK3gUXQWc2YS9IvW8iNZa2Fp6zoMpmVH4xbrDTt7DIjLqhN4C2sAaHLbQZ4Cf/8R N6/UdIDqn9rASqMkH1AK/e8Ul3DX4aK9bG83I5o4+mbVNLqZQngG7jbjgXUKGEPI PtzGm9I5E8z8Osnj5ABAq+AtldR/Nfg6bIyrDGL2BDWeHgqnuAmfOiP55mKT+3cB fi3lbY+eOTbKcmLfePM3A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrheejgdekvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthekredttddvjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeefgeefieeutdfggfetgefgheekjeehteeileeigfet ieekjedvieeviefgheevtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmh grihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 22 Jul 2024 10:49:34 -0400 (EDT) Message-ID: <011a5254-4abb-460b-bd02-92e8dfc0e5ea@aklaver.com> Date: Mon, 22 Jul 2024 07:49:33 -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> 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 03:10, Ertan Küçükoglu wrote: > Adrian Klaver >, 21 Tem 2024 Paz, 22:29 tarihinde > şunu yazdı: > > If the backup was done using pg_dump it should work. If you are talking > about a file level backup then it would not work. > > > Backup file is from a cluster backup taken using pg_dumpall. > When I try to restore it on Linux, I get below errors > > psql:/cluster.dump.sql:88: ERROR:  database "template1" does not exist > psql:/cluster.dump.sql:93: ERROR:  invalid LC_COLLATE locale name: > "Turkish_Turkey.1254" > HINT:  If the locale name is specific to ICU, use ICU_LOCALE. > psql:/cluster.dump.sql:96: ERROR:  database "template1" does not exist > psql:/cluster.dump.sql:98: error: \connect: connection to server on > socket "/var/run/postgresql/.s.PGSQL.5432" failed: FATAL:  database > "template1" does not exist > > I am not sure if there is a way to change the locale on restore. > I am not sure about the "database "template1" does not exist" error > either. Maybe it is because the locale is missing. Provide the following info: 1) Linux distro and version. 2) How did you install Postgres? 3) Versions of Postgres that was dumped from and restored to. 4) How did you initdb the Postgres cluster? 5) Can you connect to cluster using psql? > > Thanks & Regards, > Ertan -- Adrian Klaver adrian.klaver@aklaver.com