Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UULDq-0007Sc-TT for pgsql-admin@arkaria.postgresql.org; Mon, 22 Apr 2013 18:12:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UULDq-0005pa-6r for pgsql-admin@arkaria.postgresql.org; Mon, 22 Apr 2013 18:12:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UULDp-0005pR-Ed for pgsql-admin@postgresql.org; Mon, 22 Apr 2013 18:12:13 +0000 Received: from plane.gmane.org ([80.91.229.3]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UULDf-0001oG-Ox for pgsql-admin@postgresql.org; Mon, 22 Apr 2013 18:12:12 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UULDc-0001gR-TB for pgsql-admin@postgresql.org; Mon, 22 Apr 2013 20:12:00 +0200 Received: from cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com ([86.21.186.149]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Apr 2013 20:12:00 +0200 Received: from walterhurry by cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 22 Apr 2013 20:12:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-admin@postgresql.org From: Walter Hurry Subject: Re: Failover question Date: Mon, 22 Apr 2013 18:11:47 +0000 (UTC) Lines: 21 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: cpc3-walt15-2-0-cust148.13-2.cable.virginmedia.com User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org On Mon, 22 Apr 2013 12:06:52 -0600, Benjamin Krajmalnik wrote: > I currently have 2 servers running PostgreSQL 9.0 under FreeBSD > configured with streaming replication. > > DB1 is the primary server, and DB2 is the replicated server, which is > used for all of the read only queries. > > I am having some hardware issues on DB1 which is affecting its > performance, resulting in data getting queued up. > > I would like to change roles on these servers, such that DB1 becomes the > replicated server and DB2 the master server. > > This is a production system, so I cannot take any chances of anything > going wrong. > > What is the correct procedure for accomplishing this? The correct procedure is to have a test server and test standby so that you can test. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin