Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgKOn-0004t0-Is for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 19:12:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TgKOn-0007jY-3k for pgsql-bugs@arkaria.postgresql.org; Wed, 05 Dec 2012 19:12:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgKOm-0007jT-IW for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 19:12:48 +0000 Received: from moutng.kundenserver.de ([212.227.17.8]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TgKOk-00078v-B2 for pgsql-bugs@postgresql.org; Wed, 05 Dec 2012 19:12:48 +0000 Received: from anarazel.de (p5DDC4F13.dip.t-dialin.net [93.220.79.19]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MEaVh-1TQfCj2wgr-00GUOj; Wed, 05 Dec 2012 20:12:33 +0100 Received: by anarazel.de (Postfix, from userid 1000) id BB4101C00E6; Wed, 5 Dec 2012 20:12:31 +0100 (CET) Date: Wed, 5 Dec 2012 20:12:31 +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: <20121205191231.GK27424@awork2.anarazel.de> References: <20121205143314.GA6420@awork2.anarazel.de> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9918.1354733333@sss.pgh.pa.us> X-Provags-ID: V02:K0:DgZVPYZkIKqCh4085HyVZ6x6tl3zL1rg4qzia/7rKNv xEqBjPOtqzuNQoRSCJXLulZS5hEAVZN30qjpmcklstSqqJMsYk NQQ5EaCBKwQipDS0zmRawJbyNPOnjrD7ta6sFIiPubG9aav2E6 KFxwP4Aq1VnC5QdEwsvswLdXKA8+mPVwUxpIi9rvrGFxuGVny+ XHkiOblkCZIU6bt1cnJO2P2IiWn9B9BCd8VRIiLuerBncPApG1 lBMW20BJCIXMpcLFiM7BACZOBiYY+aKMbmz56JTnbwF5qb9vPz eHLkm1tAxMtSjtyK7Mnxfe+e7j4IBNhQ7TdVyMkOrGH9d3OC0G kciRmrRyYn0idl9P5h/B9OMl1T6NbsyM/s9NQlnJw 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 13:48:53 -0500, Tom Lane wrote: > I wrote: > > Andres Freund writes: > >> On 2012-12-05 17:24:42 +0000, Simon Riggs wrote: > >>> So ISTM that we should make recoveryStopsHere() return false while we > >>> are inconsistent. Problems solved. > > >> I prefer the previous (fixed) behaviour where we error out if we reach a > >> recovery target before we are consistent: > > > I agree. Silently ignoring the user's specification is not good. > > (I'm not totally sure about ignoring the pause spec, either, but > > there is no good reason to change the established behavior for > > the recovery target spec.) > > On further thought, it seems like recovery_pause_at_target is rather > misdesigned anyway, and taking recovery target parameters from > recovery.conf is an obsolete API that was designed in a world before hot > standby. What I suggest people really want, if they're trying to > interactively determine how far to roll forward, is this: > > (1) A recovery.conf parameter that specifies "pause when hot standby > opens up" (that is, as soon as we have consistency). > (2) A SQL command/function that releases the pause mode *and* specifies > a new target stop point (ie, an interactive way of setting the recovery > target parameters). The startup process then rolls forward to that > target and pauses again. > > (3) A SQL command/function that releases the pause mode and specifies > coming up normally, ie not following the archived WAL any further > (I imagine this would force a timeline switch). That sounds good. The multitude of options for 2) sounds a bit annoying, but I am not sure where to cut there. > > The existing "pause now" function could still fit into this framework; > but it seems to me to have mighty limited usefulness, considering the > speed of WAL replay versus human reaction time. I think "pause now" is useful for independent purposes. You can use while operating a normal standby to stop replay for some time if you need consistent data and then happily resume afterwards (if you have enough wal stored...). 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