Re: Streaming replication issue

Поиск
Список
Период
Сортировка
От Juan José Santamaría Flecha
Тема Re: Streaming replication issue
Дата
Msg-id CAC+AXB2wBxN1kKGWZZdmhKjsEpUxdpa6wxdzt-gU2zVQ7tMHiA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Streaming replication issue  (John Wiencek <jwiencek3@comcast.net>)
Список pgsql-admin
On Thu, Sep 5, 2019 at 5:54 PM John Wiencek <jwiencek3@comcast.net> wrote:
>
> H
>
> When you set up streaming replication your read-only replica should be created using pg_basebackup.
>
> for example;
>
> Run this from the streamed/slave server.   Set variable $PGDATA.  Make sure directory structure exits and is empty(
nofile in $PGDATA on slave server) 
>
> pg_basebackup --pgdata=$PGDATA --label=standby --host 10.64.98.199--usernamerepuser --wal-method=stream
--write-recovery-conf.
>
>
> Your PGDATA direetory on the streamed/salve server needs to be empty.   The basebackup will copy ALL files from the
masterto the slave.   This would include PostgreSQL.conf , pg_hba.conf and all associated files for the databases. 
>
> Therefore the streaming/slave server will be EXACTLY the same as the master.   Same users, same port, same data.
>

I am under impression that what you are trying to do is merging two
Primary databases. If that is what you actually want then Streaming
Replication is not going to work for you. Maybe you should look for
some Multi-master replication tool, which is probably the way to go if
you want to mix PostgreSQL and EDB Advanced Server anyway.

Regards,

Juan José Santamaría Flecha



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

Предыдущее
От: John Wiencek
Дата:
Сообщение: Re: Streaming replication issue
Следующее
От: John Wiencek
Дата:
Сообщение: Re: Streaming replication issue