Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id A33FFB5FBC3 for ; Tue, 7 Jun 2011 15:16:12 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 18916-02-6 for ; Tue, 7 Jun 2011 18:16:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from locust.cns.vt.edu (locust.cns.vt.edu [198.82.169.14]) by mail.postgresql.org (Postfix) with ESMTP id E40C8B5F5C4 for ; Tue, 7 Jun 2011 15:12:48 -0300 (ADT) Received: by locust.cns.vt.edu (Postfix, from userid 986) id 39BA91189F5; Tue, 7 Jun 2011 14:12:44 -0400 (EDT) Date: Tue, 7 Jun 2011 14:12:44 -0400 From: Ray Stell To: A J Cc: pgsql-admin@postgresql.org Subject: Re: Switchover of Master and Slave roles Message-ID: <20110607181244.GA3861@cns.vt.edu> References: <693391.31715.qm@web120020.mail.ne1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <693391.31715.qm@web120020.mail.ne1.yahoo.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201106/31 X-Sequence-Number: 37657 On Tue, Jun 07, 2011 at 09:32:31AM -0700, A J wrote: > Hello, > I am trying to switch the master and slave roles in a test I am doing with > streaming replication in 9.1 beta. > http://www.postgresql.org/docs/9.1/static/warm-standby-failover.html Once failover to the standby occurs, there is only a single server in operation. This is known as a degenerate state. The former standby is now the primary, but the former primary is down and might stay down. To return to normal operation, a standby server must be recreated, either on the former primary system when it comes up, or on a third, possibly new, system. Once complete, the primary and standby can be considered to have switched roles.