Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgOoa-0000gy-Um for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 23:55:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TgOoZ-0005jY-SV for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 23:55:43 +0000 Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgOoZ-0005jT-8H for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 23:55:43 +0000 Received: from moutng.kundenserver.de ([212.227.17.10]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgOoX-0003K4-Py for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 23:55:42 +0000 Received: from anarazel.de (p5DDC4F13.dip.t-dialin.net [93.220.79.19]) by mrelayeu.kundenserver.de (node=mrbap3) with ESMTP (Nemesis) id 0LZf8m-1SuzAV21JU-00m0yM; Thu, 06 Dec 2012 00:55:31 +0100 Received: by anarazel.de (Postfix, from userid 1000) id 680F51C00E6; Thu, 6 Dec 2012 00:55:30 +0100 (CET) Date: Thu, 6 Dec 2012 00:55:30 +0100 From: Andres Freund To: Tom Lane Cc: Simon Riggs , Jeff Janes , Heikki Linnakangas , Noah Misch , Pg Bugs Subject: Re: PITR potentially broken in 9.2 Message-ID: <20121205235530.GB27424@awork2.anarazel.de> References: <7015.1354725616@sss.pgh.pa.us> <20121205173025.GD27424@awork2.anarazel.de> <8223.1354728999@sss.pgh.pa.us> <9918.1354733333@sss.pgh.pa.us> <12846.1354742138@sss.pgh.pa.us> <20121205215651.GU27424@awork2.anarazel.de> <17744.1354750547@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17744.1354750547@sss.pgh.pa.us> X-Provags-ID: V02:K0:hf07ffVNuannoX8IBbhnFdBzdi83c1RHKvpS8uZwRl9 Y7XdxhgRMOcwrsbSFzZ8DihwcJGpWobA/79CfHJgBjhfcgc6Mi 8puS62DJnEs6gdUdq4sAKw/2l72M9uKkFXgrjjK0N8NEFMIGld MEm7KpJXSJ2SP9b0sc4xFNSwrqUbOf+t8vj48yvYHjiR56c3Hu d3VdQ4OGf0Sqthb8uF/xGJTyzbGhqy7q+ugQSRu2CPM8K35rkb 77DAo44CjiINAmQkYhAbB7xeHRdpa7yXX4bDRm/lBcyGuSXEGG sE1+20tb/+XU6YIrPG3OxoNgfKEoMP3APRgYbv8DDIMASJKDHH XcowkS3cVUEd0kWWrZ90u14V3wk42C/FveVe6MyGy 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-05 18:35:47 -0500, Tom Lane wrote: > Andres Freund writes: > > On 2012-12-05 16:15:38 -0500, Tom Lane wrote: > >> That's fine, but the immediate question is what are we doing to fix > >> the back branches. I think everyone is clear that we should be testing > >> LocalHotStandbyActive rather than precursor conditions to see if a pause > >> is allowed, but are we going to do anything more than that? > > > I'd like to have inclusive/non-inclusive stops some resemblance of > > sanity. > > Raw patch including your earlier LocalHotStandbyActive one attached. > > I looked at this but couldn't get excited about using it. There were > some obvious bugs ("if (!recoveryStopsHere)"?) but the real problem is > that I think we're going to end up reworking the interaction between > recoveryPausesHere and the recoveryStopsHere stanza quite a bit. > In particular, we should expect that we're going to need to respond > to a changed recovery target after any pause. So placing a call of > recoveryPausesHere down at the loop bottom where the action is already > predetermined seems like the wrong thing. I'm not entirely sure what > a clean design would look like, but that's not it. I'll leave it to > Simon to think about what we want to do there next. Yes, the patch obviously wasn't ready for anything. Just seemed easier that way than trying to describe what I think is sensible. What I dislike with what you committed is that the state you're investigating during the pause isn't the one youre going to end up recoveryApply == true. That seems dangerous to me, even if its going to be reworked in HEAD. Greetings, 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