From: | Euler Taveira <euler(at)timbira(dot)com(dot)br> |
---|---|
To: | ram pratap maurya <rampratap0000(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #15785: create slave through archive log replication |
Date: | 2019-05-02 12:43:35 |
Message-ID: | CAHE3wgjxtUppV4OQHvs+UWuDT87M6e7GjPC7OdQx_ZgcHMmK_w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Em qui, 2 de mai de 2019 às 06:33, ram pratap maurya
<rampratap0000(at)gmail(dot)com> escreveu:
>
> Master and 1slave is smae host and location and 2slave (i am createg 2nd slave for DR purpose) is another location.
> when we replicating 2nd slave it replicate via streeming replication (pg_wal) . i want 2nd salve replicate through pg_log_archive.
> please suggest.
>
Why don't you want to use streaming for 2nd slave?
If you want to replicate to 2nd slave applying WAL files, remove
primary_conninfo and add restore_command such as:
restore_command = 'scp
postgres(at)myhost:/var/lib/pgsql/11/data/pg_log_archive/%f %p'
or modify archive_command in the master to archive in the 2nd slave as
well. In this case, restore command will be a simple cp:
restore_command = 'cp /path/to/archives/%f %p'
> in your reply myhost is a master ip?.
>
Yes.
--
Euler Taveira Timbira -
http://www.timbira.com.br/
PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento
From | Date | Subject | |
---|---|---|---|
Next Message | PG Bug reporting form | 2019-05-02 13:57:27 | BUG #15789: libpq compilation with OpenSSL 1.1.1b fails on Windows with Visual Studio 2017 |
Previous Message | Prakash Ramakrishnan | 2019-05-02 10:12:12 | orafce bug issue |