Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgHZM-0002Au-EX for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 16:11:32 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TgHZL-0001cW-D8 for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 16:11:31 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgHZK-0001cQ-Pu for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 16:11:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgHZJ-0004wO-QR for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 16:11:30 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qB5GBNsO006462; Wed, 5 Dec 2012 11:11:23 -0500 (EST) From: Tom Lane To: Andres Freund cc: Simon Riggs , Jeff Janes , Heikki Linnakangas , Noah Misch , Pg Bugs Subject: Re: PITR potentially broken in 9.2 In-reply-to: <20121205143314.GA6420@awork2.anarazel.de> References: <16296.1354399004@sss.pgh.pa.us> <7787.1354482169@sss.pgh.pa.us> <20516.1354666844@sss.pgh.pa.us> <20121205021537.GB9811@awork2.anarazel.de> <22653.1354674454@sss.pgh.pa.us> <20121205143314.GA6420@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 05 Dec 2012 15:33:14 +0100" Date: Wed, 05 Dec 2012 11:11:23 -0500 Message-ID: <6461.1354723883@sss.pgh.pa.us> 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 Andres Freund writes: > On 2012-12-05 13:34:05 +0000, Simon Riggs wrote: >> @@ -5883,6 +5889,17 @@ StartupXLOG(void) >> } while (record != NULL && recoveryContinue); >> >> /* >> + * We've reached stop point, but not yet applied last >> + * record. Pause AFTER final apply, if requested, but >> + * only if users can connect to send a resume message >> + */ >> + if (reachedStopPoint && recoveryPauseAtTarget && recoveryApply) >> + { >> + SetRecoveryPause(true); >> + recoveryPausesHere(); >> + } >> + >> + /* > I find the above comment a bit misleading because by now we have in fact > applied the last record... I'd go further than that: a pause after we've exited the loop is completely stupid. The only reason for pausing is to let the user choose whether to continue applying WAL or not. If you've already made that choice, you might as well let the system come up fully. But I can't make any sense of the rest of this patch, because it seems to be randomly rearranging a whole lot of stuff that's unrelated to pausing. If you think all these changes are in fact necessary, could you break it down a little more? regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs