pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Julien Rouhaud <julien.rouhaud@dalibo.com>
To: Campbell, Lance <lance@illinois.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Re: Error when running pg_basebackup
Date: Thu, 13 Oct 2016 09:33:15 +0200
Message-ID: <8154f0c1-5ac3-8769-d0b6-81c65c666dd7@dalibo.com> (raw)
In-Reply-To: <B75CD08C73BD3543B97E4EF3964B7D7047910C1D@CITESMBX1.ad.uillinois.edu>
References: <B75CD08C73BD3543B97E4EF3964B7D7047910C1D@CITESMBX1.ad.uillinois.edu>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
On 12/10/2016 21:31, Campbell, Lance wrote:
> PostgreSQL – 9.5.4
>
> Command that is being executed:
>
> pg_basebackup --host=localhost --xlog --gzip --write-recovery-conf
> --format=t --pgdata=${BACKUPS_HOME}/${BACKUP_DATE_TIME}
>
>
>
> Error message that appears at the very end of pg_basebackup:
>
> pg_basebackup: could not get transaction log end position from server:
> ERROR: requested WAL segment 00000001000001CD00000055 has already been
> removed
>
>
> How can I prevent this error from occurring?
>
You could use -X stream instead of --xlog (which is an alias for -X
fetch). This consumes two wal senders instead of one, but greatly
reduce the probability of having this error.
The only way to really prevent this error is using replication slots,
but the support for pg_basebackup is only available in 9.6.
--
Julien Rouhaud
http://dalibo.com - http://dalibo.org
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
view thread (2+ messages)
Message-ID: <8154f0c1-5ac3-8769-d0b6-81c65c666dd7@dalibo.com> Permalink: ../8154f0c1-5ac3-8769-d0b6-81c65c666dd7@dalibo.com/ Also on: postgresql.org/message-id/8154f0c1-5ac3-8769-d0b6-81c65c666dd7@dalibo.com ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-admin@postgresql.org Cc: julien.rouhaud@dalibo.com, lance@illinois.edu Subject: Re: Error when running pg_basebackup In-Reply-To: <8154f0c1-5ac3-8769-d0b6-81c65c666dd7@dalibo.com> References: <B75CD08C73BD3543B97E4EF3964B7D7047910C1D@CITESMBX1.ad.uillinois.edu> <8154f0c1-5ac3-8769-d0b6-81c65c666dd7@dalibo.com> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
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