Re: WAL replication wrong collate

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: basti <mailinglist(at)unix-solution(dot)de>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: WAL replication wrong collate
Date: 2017-08-15 02:13:47
Message-ID: CAB7nPqSK+1PLag=SraupjXBdbETHaosQR2WgOFMwYgkOTZjBmA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 15, 2017 at 3:52 AM, basti <mailinglist(at)unix-solution(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Alex Samad 2017-08-15 03:15:13 Re: cluster question
Previous Message Melvin Davidson 2017-08-14 23:38:51 Re: Queries for Diagramming Schema Keys