From: TAKATSUKA Haruka <harukat@sraoss.co.jp>
To: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #8397: pg_basebackup -x from new standby server sometimes causes Segmentation fault
Date: Sun, 25 Aug 2013 16:05:49 +0900
Message-ID: <20130825160549.8cbe1bfd.harukat@sraoss.co.jp> (raw)
In-Reply-To: <CABUevExE8SD5_9yob-cMN-oh+dXUiabEzFTt4mNRJcP=ZXa1WA@mail.gmail.com>
References: <E1VDCJ1-0000Da-FR@wrigleys.postgresql.org>
<CABUevExE8SD5_9yob-cMN-oh+dXUiabEzFTt4mNRJcP=ZXa1WA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Thanks for the response.
On Sat, 24 Aug 2013 17:04:21 +0200
Magnus Hagander <magnus@hagander.net> wrote:
> > (1) create new standby server dir by pg_basebackup without -x
> > (2) start new standby server
> > (3) pg_basebackup from new standby server with -x
> > (!) when new standby has no WAL files in pg_xlog,
> > new standby's wal sender crash
(snip)
> > Though pg_basebackup does not have to work in this rare case,
> > we should insert something like "if (nWalFiles <= 0) ereport(...);".
>
> Yes, we definitely need better error checking there - a crash is never
> the right answer.
>
> Does this happen only when you take a backup "really quickly" after
> setting up the new standby,
It's just this first case.
Therefore, we recognize that it is the problem of how to use.
regards,
> or is there some scenario further in it's
> lifetime when it can happen? In the first case, throwing a hard error
> seems quite reasonable, but if it's repeatable, perhaps there is
> something better we can do?
>
> Also, while we definitely need a sanity check at this point, might it
> be worth it to put a second check earlier in the process as well -
> since AFAICT this error gets thrown only after all the data has been
> sent arlready.
>
> --
> Magnus Hagander
> Me: http://www.hagander.net/
> Work: http://www.redpill-linpro.com/
______________________________________________________
harukat@sraoss.co.jp (SRA OSS, Inc. http://www.sraoss.co.jp)
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: harukat@sraoss.co.jp
Subject: Re: BUG #8397: pg_basebackup -x from new standby server sometimes causes Segmentation fault
In-Reply-To: <20130825160549.8cbe1bfd.harukat@sraoss.co.jp>
References: <E1VDCJ1-0000Da-FR@wrigleys.postgresql.org> <CABUevExE8SD5_9yob-cMN-oh+dXUiabEzFTt4mNRJcP=ZXa1WA@mail.gmail.com> <20130825160549.8cbe1bfd.harukat@sraoss.co.jp>
* 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