From: 德哥 <digoal@126.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: hlinnaka@iki.fi
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
Date: Sun, 19 Apr 2015 02:45:30 +0800 (CST)
Message-ID: <5f3591e8.3fe.14ccdd99138.Coremail.digoal@126.com> (raw)
In-Reply-To: <CAMkU=1wHVvQx9wj+qozk+NByGLwAfxOo1EDBF+uCPfCr+9uMxA@mail.gmail.com>
References: <20150417035856.5198.53331@wrigleys.postgresql.org>
<55310F6F.4070404@iki.fi>
<353cd71e.13cce.14cc9f6e14b.Coremail.digoal@126.com>
<CAMkU=1wHVvQx9wj+qozk+NByGLwAfxOo1EDBF+uCPfCr+9uMxA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
HI,
Thanks, jeff.
I find the findNewestTimeLine() do that job.
I think this is the NFS problem, standby cann't access the NFS DIR(archive dir), so the copy command hang.
--
公益是一辈子的事,I'm Digoal,Just Do It.
在 2015-04-19 01:30:31,"Jeff Janes" <jeff.janes@gmail.com> 写道:
On Fri, Apr 17, 2015 at 5:39 PM, 德哥 <digoal@126.com> wrote:
but in my environment, C need the new timeline file, i can see the
restore command display about copy 0000002.history from my setted dir (NFS from remote computer) use top or ps command.
And the copy message display forever.
ps:
I restart the C compute, and NFS it's ok, recovery it's ok, and don't need the 0000002.history file.
When postgresql crashed, it need copy new history first whatever it's really need the file?
It needs to know whether the file exists or not. Rather than asking if the file exists, and then separately asking for a copy of it, instead it just asks for a copy of the file and see if it gets returned an error or not.
If your restore_command hangs up forever when asked for a file that doesn't exist, then there is something wrong with your restore command.
As explained in the documentation, "It is important for the command to return a zero exit status only if it succeeds. The command will be asked for file names that are not present in the archive; it must return nonzero when so asked"
Cheers,
Jeff
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: digoal@126.com, jeff.janes@gmail.com, hlinnaka@iki.fi
Subject: Re: BUG #13077: when standby crash and restart, it's need next timeline history file, but upstream node normal.
In-Reply-To: <5f3591e8.3fe.14ccdd99138.Coremail.digoal@126.com>
References: <20150417035856.5198.53331@wrigleys.postgresql.org> <55310F6F.4070404@iki.fi> <353cd71e.13cce.14cc9f6e14b.Coremail.digoal@126.com> <CAMkU=1wHVvQx9wj+qozk+NByGLwAfxOo1EDBF+uCPfCr+9uMxA@mail.gmail.com> <5f3591e8.3fe.14ccdd99138.Coremail.digoal@126.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