Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AA363B5DBC8 for ; Sun, 25 Sep 2011 09:34:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 17704-03 for ; Sun, 25 Sep 2011 12:34:10 +0000 (UTC) X-Greylist: delayed 00:18:34.924008 by SQLgrey-1.8.0-rc2 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 4429AB5DBC4 for ; Sun, 25 Sep 2011 09:34:10 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R7ncM-00023S-Co for pgsql-admin@postgresql.org; Sun, 25 Sep 2011 05:15:34 -0700 Date: Sun, 25 Sep 2011 05:15:34 -0700 (PDT) From: MirrorX To: pgsql-admin@postgresql.org Message-ID: <1316952934384-4838314.post@n5.nabble.com> Subject: standby becomes primary and then? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.767 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201109/181 X-Sequence-Number: 38418 dear all, i would like your help on the following matter: the other day i had to bring up the failover server. it was in warm standby mode and everything went fine. my question is this-> when the secondary becomes primary is there a way for the primary to immediately turn to warm-standby mode? in more details what i did is this: 1)stopped primary 2)rsync last wals 3)apply wals to secondary 4)bring up secondary. the first wal archive he wrote was the next in the sequence of the first. that is to say the last wal of the first was xxxxx01 and the first of the 2nd was xxxxx02. 5)put the former primary to standby mode and giving as %f the first wal that that the new primary produced but it didnt work. the error msg was sth about the timeline of the wals in a xxxx.history file. so my question is a little more general. should this method work in general? should have i done something differenctly? note here that i didn't have any backup_label file. so probably to make it work i should immediately put the new primary to backup mode? (pg_start_backup). thx in advance for your help -- View this message in context: http://postgresql.1045698.n5.nabble.com/standby-becomes-primary-and-then-tp4838314p4838314.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.