public inbox for [email protected]  
help / color / mirror / Atom feed
Restore Windows dump to Linux (locale issue)
3+ messages / 2 participants
[nested] [flat]

* Restore Windows dump to Linux (locale issue)
@ 2025-11-23 21:41  Ertan Küçükoglu <[email protected]>
  0 siblings, 2 replies; 3+ messages in thread

From: Ertan Küçükoglu @ 2025-11-23 21:41 UTC (permalink / raw)
  To: [email protected]

Hello,

I am using PostgreSQL 18.1 on a Windows system.
I need to move that database to a Linux system of the same version number.

Windows system use locales name as tr-TR (this is UTF-8 locale)
Linux system use locale name as tr_TR.UTF-8

My cluster backup gives error at restore (I think because of that locale
naming difference) as below

psql:/db.dump:133: ERROR:  invalid LC_COLLATE locale name: "tr-TR"

And a bunch of other errors below.

What can I do to complete this migration?

Thanks & Regards,
Ertan


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Restore Windows dump to Linux (locale issue)
@ 2025-11-23 21:47  Adrian Klaver <[email protected]>
  parent: Ertan Küçükoglu <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2025-11-23 21:47 UTC (permalink / raw)
  To: Ertan Küçükoglu <[email protected]>; [email protected]

On 11/23/25 13:41, Ertan Küçükoglu wrote:
> Hello,
> 
> I am using PostgreSQL 18.1 on a Windows system.
> I need to move that database to a Linux system of the same version number.
> 
> Windows system use locales name as tr-TR (this is UTF-8 locale)
> Linux system use locale name as tr_TR.UTF-8
> 
> My cluster backup gives error at restore (I think because of that locale 
> naming difference) as below

What was the complete command you gave to do the dump?

> 
> psql:/db.dump:133: ERROR:  invalid LC_COLLATE locale name: "tr-TR"

What objects where the errors on?

> 
> And a bunch of other errors below.
> 
> What can I do to complete this migration?
> 
> Thanks & Regards,
> Ertan


-- 
Adrian Klaver
[email protected]






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Restore Windows dump to Linux (locale issue)
@ 2025-11-23 21:49  Adrian Klaver <[email protected]>
  parent: Ertan Küçükoglu <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Adrian Klaver @ 2025-11-23 21:49 UTC (permalink / raw)
  To: Ertan Küçükoglu <[email protected]>; [email protected]

On 11/23/25 13:41, Ertan Küçükoglu wrote:
> Hello,
> 
> I am using PostgreSQL 18.1 on a Windows system.
> I need to move that database to a Linux system of the same version number.
> 
> Windows system use locales name as tr-TR (this is UTF-8 locale)
> Linux system use locale name as tr_TR.UTF-8
> 
> My cluster backup gives error at restore (I think because of that locale 
> naming difference) as below
> 
> psql:/db.dump:133: ERROR:  invalid LC_COLLATE locale name: "tr-TR"

I should have added to previous post what does, in psql, the below return:

\l <database_name>

> 
> And a bunch of other errors below.
> 
> What can I do to complete this migration?
> 
> Thanks & Regards,
> Ertan


-- 
Adrian Klaver
[email protected]






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2025-11-23 21:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-11-23 21:41 Restore Windows dump to Linux (locale issue) Ertan Küçükoglu <[email protected]>
2025-11-23 21:47 ` Adrian Klaver <[email protected]>
2025-11-23 21:49 ` Adrian Klaver <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox