pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedrestore_command for postgresql streaming replication
2+ messages / 2 participants
[nested] [flat]
* restore_command for postgresql streaming replication
@ 2020-07-02 10:43 Brajendra Pratap Singh <singh.bpratap766@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Brajendra Pratap Singh @ 2020-07-02 10:43 UTC (permalink / raw)
To: pgsql-general
Hi,
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'
Thanks
Singh
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: restore_command for postgresql streaming replication
@ 2020-07-02 15:32 Stephen Frost <sfrost@snowman.net>
parent: Brajendra Pratap Singh <singh.bpratap766@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Frost @ 2020-07-02 15:32 UTC (permalink / raw)
To: Brajendra Pratap Singh <singh.bpratap766@gmail.com>; +Cc: 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
Attachments:
signature.asc (application/pgp-signature, 818B) download
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2020-07-02 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2020-07-02 10:43 restore_command for postgresql streaming replication Brajendra Pratap Singh <singh.bpratap766@gmail.com>
2020-07-02 15:32 ` Stephen Frost <sfrost@snowman.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox