Re: restore_command for postgresql streaming replication

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: restore_command for postgresql streaming replication
Дата
Msg-id 20200702153252.GR3125@tamriel.snowman.net
обсуждение исходный текст
Ответ на restore_command for postgresql streaming replication  (Brajendra Pratap Singh <singh.bpratap766@gmail.com>)
Список pgsql-general
Greetings,

* Brajendra Pratap Singh (singh.bpratap766@gmail.com) wrote:
> Please help us to configure the restore_command on postgresql replication
> server's recovery.conf file incase of ERROR: requested wal segment has
> already been removed on primary and when we have implemented pgbackrest on
> primary database.
>
> Primary database -
>
> archive_command = 'pgbackrest --stanza=uatodb archive-push %p'

For this, the restore_command would be:

restore_command = 'pgbackrest --stanza=uatodb archive-get %f "%p"'

When you use pgbackrest to do a restore with 'pgbackrest restore',
pgbackrest will also write the correct restore_command into the
configuration for the restored system for you.

You might want to check out the user guide:

https://pgbackrest.org/user-guide.html

(that's for v10 on Debian, there's a couple other user guides if you're
on something different that you could look at)

Thanks,

Stephen

Вложения

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: Different results from identical matviews
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Different results from identical matviews