Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg4Of-0006ka-22 for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 02:07:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1Tg4Oe-0003Wq-JS for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 02:07:36 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg4Od-0003WS-Ul for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 02:07:36 +0000 Received: from moutng.kundenserver.de ([212.227.17.9]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tg4Oc-0001Cv-Ge for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 02:07:35 +0000 Received: from anarazel.de (p5DDC6236.dip.t-dialin.net [93.220.98.54]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MdH3n-1TxSv22iNH-00I1WU; Wed, 05 Dec 2012 03:07:23 +0100 Received: by anarazel.de (Postfix, from userid 1000) id BB3341C0173; Wed, 5 Dec 2012 03:07:22 +0100 (CET) Date: Wed, 5 Dec 2012 03:07:22 +0100 From: Andres Freund To: Tom Lane Cc: Jeff Janes , Heikki Linnakangas , Noah Misch , Pg Bugs Subject: Re: PITR potentially broken in 9.2 Message-ID: <20121205020722.GA9811@awork2.anarazel.de> References: <50B60E8C.7060602@vmware.com> <241.1354117868@sss.pgh.pa.us> <14784.1354394848@sss.pgh.pa.us> <16296.1354399004@sss.pgh.pa.us> <7787.1354482169@sss.pgh.pa.us> <20516.1354666844@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20516.1354666844@sss.pgh.pa.us> X-Provags-ID: V02:K0:BZBY87G9Hp4glw/m2mWAzuIeRlQb6DlSDxi3PabmgKV aW9So4T2CsGjrUevsrhyShXQihrlgwaVqxYDWlG5DlnsLBMCYI dWOAWwAOM2Zq+XZp2gcjZKuvmBXdTA2CgXtK3i6gZ1lITTDCqf JFnMZ+WCN2iJTElNHp7PYhHWogYfrdLRCQRXTQvtK4WPH1OrkI ktPc7TN/eH+/EqBr0jcc+zKipXx9x/7qux6uRZrmkDxghXmpcG k8bRhugd+5i4VRkqbDt4XjokTAeJDo3rzNdGnVXmxZTp4qzIl8 IUDFzveR2v53W3Uvke83ycqc1iMhr/ueHnm27BBZKfc2WgnKUz d+aKaV9yHmBaUmcpSPoy/ELqP6OuDHCwDKpUqh3K/ X-Pg-Spam-Score: -1.9 (-) 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 2012-12-04 19:20:44 -0500, Tom Lane wrote: > Jeff Janes writes: > > I've reproduced it again using the just-tagged 9.2.2, and uploaded a > > 135MB tarball of the /tmp/data_slave2 and /tmp/archivedir to google > > drive. The data directory contains the recovery.conf which is set to > > end recovery between the two critical time points. > > Hmmm ... I can reproduce this with current 9.2 branch tip. However, > more or less by accident I first tried it with a 9.2-branch postmaster > from a couple weeks ago, and it works as expected with that: the log > output looks like > > LOG: restored log file "00000001000000000000001B" from archive > LOG: restored log file "00000001000000000000001C" from archive > LOG: restored log file "00000001000000000000001D" from archive > LOG: database system is ready to accept read only connections > LOG: recovery stopping before commit of transaction 305610, time 2012-12-02 15:08:54.000131-08 > LOG: recovery has paused > HINT: Execute pg_xlog_replay_resume() to continue. > > and I can connect and do the pg_xlog_replay_resume() thing. > Note the "ready to accept read only connections" line, which > does not show up with branch tip. > > So apparently this is something we broke since Nov 18. Don't know what > yet --- any thoughts? Also, I am still not seeing what the connection > is to the original report against 9.1.6. Maybe I am blind, but, looking at the backup label: START WAL LOCATION: 0/110006A8 (file 000000010000000000000011) CHECKPOINT LOCATION: 0/1D776B50 BACKUP METHOD: pg_start_backup BACKUP FROM: master START TIME: 2012-12-02 15:08:52 PST LABEL: label This was a straight archive based hot backup with manual pg_start/stop_backup. Which means we ought to find a XLOG_BACKUP_END record. Before that we shouldn't be consistent. Satoshi's version of xlogdump outputs this (besides heaps of errors ...): ~/bin/xlogdump-9.2 ~/tmp/recover/tmp/archivedir/0000000100000000000000* 2>&1|grep "backup end" [cur:0/22C361E0, xid:0, rmid:0(XLOG), len:8/40, prev:0/22C361B0] backup end: started at 0/110006A8. But again, according to xlogdump: [cur:0/1D861CD8, xid:305610, rmid:1(Transaction), len:12/44, prev:0/1D861C80] compact commit at 2012-12-03 00:08:54 CET So the target xid far before the backend end, so it seems absolutely correct not to permit access yet. So maybe I am (again) missing something here, but everything looks fine. Andres Freund -- Andres Freund http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs