Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2001A1337B89 for ; Tue, 19 Oct 2010 15:20:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 89634-02 for ; Tue, 19 Oct 2010 18:20:39 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from glacier.frostconsultingllc.com (glacier.frostconsultingllc.com [69.36.227.170]) by mail.postgresql.org (Postfix) with ESMTP id 3F4471337B8D for ; Tue, 19 Oct 2010 15:20:38 -0300 (ADT) Received: from dsl081-245-111.sfo1.dsl.speakeasy.net ([64.81.245.111] helo=Sidney-Stratton.local) by glacier.frostconsultingllc.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.69) (envelope-from ) id 1P8GnX-0001vc-7u; Tue, 19 Oct 2010 11:20:36 -0700 Message-ID: <4CBDE169.4060008@agliodbs.com> Date: Tue, 19 Oct 2010 11:20:25 -0700 From: Josh Berkus User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Greg Stark CC: pgsql-hackers@postgresql.org Subject: Re: Simplifying replication References: <4CBCE356.2080703@agliodbs.com> <4CBDC461.3050401@agliodbs.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.419 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, SARE_SPEC_REPLICA=0.72 X-Spam-Level: ** X-Archive-Number: 201010/1329 X-Sequence-Number: 172369 Greg, > The way things stand you *always* need archived logs. Even if you have > streaming set up it might try to use archived logs if it falls too far > behind. Actually, you don't. If you're willing to accept possible desynchronization and recloning of the standbys, then you can skip the archive logs. > Timelines are not as obvious but perhaps that's our own mistake. When > you fail over to your replica shouldn't the new master get a new > timelineid? Isn't that the answer to the failure case when a slave > finds it's ahead of the master? If it has already replayed logs from a > different timelineid in the same lsn range then it can't switch > timelines to follow the new master. But if it hasn't then it can. Oh? Do we have this information (i.e. what LSNs are associated with which timeline)? -- -- Josh Berkus PostgreSQL Experts Inc. http://www.pgexperts.com