Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgOVb-0000Nf-II for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 23:36:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TgOVa-0004q3-Eq for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 23:36:06 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgOVR-0004iN-55 for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 23:35:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgOVO-0003ku-5S for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 23:35:56 +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 qB5NZlc9017745; Wed, 5 Dec 2012 18:35:47 -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: <20121205215651.GU27424@awork2.anarazel.de> References: <6461.1354723883@sss.pgh.pa.us> <20121205162421.GB20456@awork2.anarazel.de> <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> Comments: In-reply-to Andres Freund message dated "Wed, 05 Dec 2012 22:56:52 +0100" Date: Wed, 05 Dec 2012 18:35:47 -0500 Message-ID: <17744.1354750547@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 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. 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