Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZgSqz-0004kr-Fk for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Sep 2015 07:28:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZgSqy-00038B-OK for pgsql-bugs@arkaria.postgresql.org; Mon, 28 Sep 2015 07:28:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZgSqL-0002Rf-Kb for pgsql-bugs@postgresql.org; Mon, 28 Sep 2015 07:27:25 +0000 Received: from mout.gmx.com ([74.208.4.200]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1ZgSqI-0004EL-UI for pgsql-bugs@postgresql.org; Mon, 28 Sep 2015 07:27:24 +0000 Received: from anaphora.localdomain ([5.102.233.80]) by mail.gmx.com (mrgmxus002) with ESMTPSA (Nemesis) id 0Lm3Xz-1aFnWh14AD-00Zerv; Mon, 28 Sep 2015 09:27:18 +0200 Subject: Re: BUG #13644: 2xRecovery without new writes, causes archiving failure To: Michael Paquier References: <20150926032247.3022.98224@wrigleys.postgresql.org> <5607083E.7040109@mail.com> Cc: PostgreSQL mailing lists From: Amir Rohan Message-ID: <5608EBD3.7080104@mail.com> Date: Mon, 28 Sep 2015 10:27:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:u0iXvlzyJGgpGWRz7f+eLgQQb/avFpWEaMqbqQ/0M4CzrtA6nGu RTnGIP+GgUfvVGdYRIITHEFVfVaxpThJg52GhsC41BpqXkspVEHno3IYLwMdCgQFKOY+aty pby5oqXEeSZ44IcJoq/D61cdmc+lcpNv8XPoRjZSa7K/Fc4lUOrhg1fCOATwS5/tt3PMTrl Gj06ZjRV1amO/d3VK3n1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:bfkjejwka6c=:pQtaA/FN8R69ptGolHSHdA QfBWKxRJ/U1kx6YUneDE6yr9ujzcXlnyrnhhE/s1+guVbdq+qqfLkJ5xehtRnsdqQcx5v3Hfe 4ZXX7ngQAdPrdScvYUK6UtZPcG0X0EdGa8rVq2WSoNLw1fUKnO6UPxRt4L3gWyacuhmYEH9d5 +YksNhYAxDc6w+NGhLPlJolBOtKYA6XnlFplmrhLNki9sv116R1NUILQoViLaP8haEt74eflu JPvT715DLVWSKUK2bOMan1QDLTjyMi5VCMJXEoN23HpoebuPc+IssV5WqqKDXKfZVsgD9ascU 7bRh2XnCRNfjFdOY3/u6GTUVUqjwFcgI+NWTT5H4iHpGkqDe2HAJM+d4Y2ciZBv8Aba3BDYb/ ohpquzn6RJjTIa+SQzkG944uosvI2/Y0o0QRPDdU/xr7h33gQC67sfHI+CSAoRktEj4GdVmu4 HXF+CLLmeYuWPRJbvMzzMLeWAoTV2e4dtQF9/bZe8zzmoJkq3/AHYnsjjdai5T3TA+S4OvU9O isTCck2ysSpD8P6g4uLs4OYTkj1Tk5Ss4FCQQFnEuXyUnkr2beoYDx1wHOmUqgg6F37YEnAL+ cVct89PFehnI9aDW6PdxL3WQ50I8YcvqQRWcZFfLSsW7z/+QtZH1Z74V8QK/cHlWcKZmcgq5n fspk5Xeo1/7AOp14mUiKu+mSnf2hEYN3qn45zShZT35e40cprb+po+V000K0nsEgpt9RdTwD6 ev7YAryx3Zy4EIjq5yihR9uJhNJ9WH9pedzA6g== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 09/28/2015 10:14 AM, Michael Paquier wrote: > On Sun, Sep 27, 2015 at 6:03 AM, Amir Rohan wrote: >> On 09/26/2015 02:39 PM, Michael Paquier wrote: >> I can reproduced this 100% of the time with HEAD from the last few days, >> and haven't tried with anything else. >> >> See attached log+shell-script I used to reproduce. >> The log shows the contents of the archive directory at various points >> in the process I described in the initial post. > > If there is a bug, that's in your script, not in the backend code. > restore_command should point to ARCHIVE_DIR instead of BACKUP_DIR. > That's the reason why the third node (2nd recovery) cannot switch to > timeline 3: it cannot find the history file of timeline 2 properly. > Of course! I'm embarrassed to have missed that, thank you. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs