Re: [GENERAL] WAL replication wrong collate

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [GENERAL] WAL replication wrong collate
Дата
Msg-id CAB7nPqSK+1PLag=SraupjXBdbETHaosQR2WgOFMwYgkOTZjBmA@mail.gmail.com
обсуждение исходный текст
Ответ на [GENERAL] WAL replication wrong collate  (basti <mailinglist@unix-solution.de>)
Список pgsql-general
On Tue, Aug 15, 2017 at 3:52 AM, basti <mailinglist@unix-solution.de> wrote:
> master and slave had set the same locales.
> I dont unterstand that i can create a database in en_us.utf8 and then when i
> did the basebackup it's change to c locale.
> I cant find any option for pg_basebackup to set locale/collate.
> I use this howto https://wiki.postgresql.org/wiki/Streaming_Replication and
> had install an other cluster in the past with successful.
>
> How can help please?

Are you sure that you are connecting to the right standby server? The
creation of a database is WAL-logged in roughly two phases:
- Log the new pg_database record.
- Copy the directory of the template database to the new database.
So collations are conserved at replay.
--
Michael


В списке pgsql-general по дате отправления:

Предыдущее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] Queries for Diagramming Schema Keys
Следующее
От: Alex Samad
Дата:
Сообщение: Re: [GENERAL] cluster question