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 1sVq08-00Btaf-4a for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 10:10:40 +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 1sVq06-00HDUv-7h for pgsql-general@arkaria.postgresql.org; Mon, 22 Jul 2024 10:10:38 +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 1sVq05-00HDUl-T7 for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 10:10:38 +0000 Received: from mail-vs1-xe2d.google.com ([2607:f8b0:4864:20::e2d]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sVq03-000q7V-PT for pgsql-general@lists.postgresql.org; Mon, 22 Jul 2024 10:10:37 +0000 Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-49294575ad8so816262137.1 for ; Mon, 22 Jul 2024 03:10:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721643035; x=1722247835; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xrMIfHayqQuU2zWRGR8KDKkj7m7dOgxC6CPO0HqLOlA=; b=GxSDbjY7hPMnPgAccBdYrGyH4wWcxZTVv7rimRPr8OOasw0FhIhRONosyNXzdpZ1fL K1NTZvH3CI/zfxP9LoGmT1Xti8jJ0t4LLl323+mZ2wDXVStHp1OqWTnKPG9ZtwfSvv93 Dyntf8HIdnpxz+7/53LkCcUuOX8MaAgY32HD3ofOCQozv9y4t9aAFgbX3lQSQ9p2Sdkt 9g79maRoc6LjpjRm5T7kRzFA4dClhKZNw2xkZULqKt5pen4Y4DjlwE4j7Lfgj+fJLnpV kVdfaWLDfAhuSgfqcuBCFMFPTO/qAOA0fkGg4HjDZjjiRGdJuAI5TBMtYVKKjZtzn5AV F6+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721643035; x=1722247835; h=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=xrMIfHayqQuU2zWRGR8KDKkj7m7dOgxC6CPO0HqLOlA=; b=GT6hcO2AXt+KxmTtajDX5QxxNJUsDhRivyErXPiU3aPs9kAECLh7g9L5gu+Y1ZMIAV n3vm/wwZ3faDHQJybxPswDGjhsEoMgqi0YgtOklcNa/X3DP+2nwyoPg1AnI5TzBElgAJ BLSslQBIjYl84DjkcRE8GPFuS9rqur5EdLcvObWHULZUYiW+TQafW+oax7hd5nUS70hG xPfLwuiHdOYlQYCKZ2tmYFBMh74+/2EPGZB6hst+1tgQeESPgM0gCZiD1V2aeoU+wRYy //vWO2yUqeTDnXrDDexcIM+q/j05GTArzzl8f9XcQUVd2WEDdgnEfFvIeAqM3RzdMYDa RW+Q== X-Gm-Message-State: AOJu0YxyIroehA6gRQhXx56TSWrEH5NR9cTtg7pWanGD3vZ5UpUEHP5R UIGcbGeAh6Il+knzB/jTwvqdF3/ST8ftq+oXXNy96cGNNHQIMd8v/RUSBo7La/xMW5iK9oaVlEC gGBgjCJ2cr96OmZ2SSi7JL3fIH83Wuzq+8iY= X-Google-Smtp-Source: AGHT+IE+35vNpGLCDzFRycjxbB1liWo26Q6Jv7zD37sWklnPgpXta8cQ623HKeCWBypE97wKFWVtrJToAZWjBg+23Ns= X-Received: by 2002:a05:6102:f97:b0:48f:b5c1:7269 with SMTP id ada2fe7eead31-492840cf2dcmr4164077137.0.1721643034685; Mon, 22 Jul 2024 03:10:34 -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: =?UTF-8?B?RXJ0YW4gS8O8w6fDvGtvZ2x1?= Date: Mon, 22 Jul 2024 13:10:24 +0300 Message-ID: Subject: Re: Windows installation problem at post-install step To: Adrian Klaver Cc: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000833b16061dd34118" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000833b16061dd34118 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Adrian Klaver , 21 Tem 2024 Paz, 22:29 tarihinde =C5=9Funu yazd=C4=B1: > 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. Thanks & Regards, Ertan --000000000000833b16061dd34118 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Adrian Klaver <adrian.klaver@aklaver.com>, 21 Tem 2024 Paz, 2= 2:29 tarihinde =C5=9Funu yazd=C4=B1:
If the backup was done usin= g 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: =C2= =A0database "template1" does not exist
psql:/cluster.dump.sql:= 93: ERROR: =C2=A0invalid LC_COLLATE locale name: "Turkish_Turkey.1254&= quot;
HINT: =C2=A0If the locale name is specific to ICU, use ICU_LOCALE.=
psql:/cluster.dump.sql:96: ERROR: =C2=A0database "template1" = does not exist
psql:/cluster.dump.sql:98: error: \connect: connection to= server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: FAT= AL: =C2=A0database "template1" does not exist

I am not sure if there is a way to change the locale on re= store.
I am not sure about the "database "template1&quo= t; does=C2=A0not exist" error either. Maybe it is because the locale i= s missing.

Thanks &=C2=A0Regards,
Er= tan
--000000000000833b16061dd34118--