Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 30AED64FCF2; Fri, 7 Nov 2008 19:44:57 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 97048-03; Fri, 7 Nov 2008 19:44:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173]) by mail.postgresql.org (Postfix) with ESMTP id 64D9664FCAC; Fri, 7 Nov 2008 19:44:56 -0400 (AST) Received: by wf-out-1314.google.com with SMTP id 25so1470928wfc.28 for ; Fri, 07 Nov 2008 15:44:54 -0800 (PST) Received: by 10.142.165.20 with SMTP id n20mr1139388wfe.96.1226101494726; Fri, 07 Nov 2008 15:44:54 -0800 (PST) Received: from ?10.10.30.141? (204.11.227.33.static.etheric.net [204.11.227.33]) by mx.google.com with ESMTPS id 24sm5362143wfc.6.2008.11.07.15.44.52 (version=SSLv3 cipher=RC4-MD5); Fri, 07 Nov 2008 15:44:53 -0800 (PST) Subject: Re: [PATCHES] Infrastructure changes for recovery (v8) From: Jeff Davis To: Simon Riggs Cc: pgsql-hackers , List pgsql-patches In-Reply-To: <1222815151.4445.1397.camel@ebony.2ndQuadrant> References: <1222815151.4445.1397.camel@ebony.2ndQuadrant> Content-Type: text/plain Date: Fri, 07 Nov 2008 15:44:51 -0800 Message-Id: <1226101491.31701.29.camel@dell.linuxdev.us.dell.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Archive-Number: 200811/563 X-Sequence-Number: 127275 On Tue, 2008-09-30 at 23:52 +0100, Simon Riggs wrote: > * optional recovery_safe_start_location parameter now provided in > recovery.conf, to allow a consistency point to be manually defined if a > base backup was not taken using standard pg_start/stop backup functions If using synchronous replication, it seems like this may be useful. For instance, if the primary server A fails (let's assume power off failure), then you make the secondary server B the new primary and start committing transactions, and then you want to bring A back up as a secondary to B. Will server A know where to start recovering from, even if many checkpoints have happened on server B in the meantime? Is there a way to avoid wiping A and making a new base backup? Are the safety issues that Heikki brought up potentially solvable, or am I asking for the impossible? And also, what if server A is shut down cleanly? Is there any way at all to get it into recovery mode to catch up with B, or would it require a new base backup? I haven't read through the entire thread, so I apologize if this question has been answered elsewhere. Regards, Jeff Davis