Re: Windows installation problem at post-install step

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Ertan Küçükoglu <ertan(dot)kucukoglu(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Windows installation problem at post-install step
Date: 2024-07-22 14:49:33
Message-ID: 011a5254-4abb-460b-bd02-92e8dfc0e5ea@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 7/22/24 03:10, Ertan Küçükoglu wrote:
> Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com
> <mailto:adrian(dot)klaver(at)aklaver(dot)com>>, 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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2024-07-22 15:08:01 Re: Fwd: lost master password
Previous Message Afa Jamal 2024-07-22 13:32:50 Re: Fwd: lost master password