Re: moving data with pg_dump/pg_restore between database with different locale

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: "Zwettler Markus (OIZ)" <Markus(dot)Zwettler(at)zuerich(dot)ch>, "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: moving data with pg_dump/pg_restore between database with different locale
Date: 2023-10-11 16:49:23
Message-ID: 61aec9b659252bc9cef1db5266a023abde25ce9f.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2023-10-11 at 11:34 +0000, Zwettler Markus (OIZ) wrote: 
> if you want to retrieve data by means of pg_dump / pg_restore from a database with
> locale de_CH.UTF8 into a database with locale en_US.UTF8 are there any other things
> to consider than the behavior implications mentioned in the documentation:

The sort order will change, the language of error messages and the log file
will change (unless you set lc_messages differently), some format letters in
to_timestamp(), to_number() and to_char() will change semantics (unless you
set lc_numeric and lc_time differently).

That's about it.

Yours,
Laurenz Albe

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2023-10-11 16:51:03 Re: log wal file transfer in error logs
Previous Message Atul Kumar 2023-10-11 16:45:48 log wal file transfer in error logs