Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 868CCB5DC00 for ; Thu, 20 Oct 2011 13:45:54 -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 63148-08 for ; Thu, 20 Oct 2011 16:45:48 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com [209.85.216.174]) by mail.postgresql.org (Postfix) with ESMTP id 72857B5DBCE for ; Thu, 20 Oct 2011 13:45:48 -0300 (ADT) Received: by qyk4 with SMTP id 4so5764995qyk.19 for ; Thu, 20 Oct 2011 09:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=fMGVGOkI9CDgWiGv6sc5Hd7J6LBRRH+4tHIwKvYX3t0=; b=XTRphyx7LVjrQdQXijhxxzS8Uvek6H00E9JREpM/oHETngDCyxVmYN+fzHM9NFnRuk gmpCNjOOiFMc4rgs6G5VRNguivnIDW7phyxanCKPu8KzJakcbu9EtRB1mEldjcqS0NbV iiKtvQFo+kiqZsnfNmGM/9FI7nWAT8KwexuUI= Received: by 10.229.219.19 with SMTP id hs19mr1508464qcb.200.1319129147862; Thu, 20 Oct 2011 09:45:47 -0700 (PDT) Received: from [192.168.1.6] (209-6-15-194.c3-0.nat-ubr1.sbo-nat.ma.cable.rcn.com. [209.6.15.194]) by mx.google.com with ESMTPS id du5sm11492997qab.14.2011.10.20.09.45.44 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Oct 2011 09:45:45 -0700 (PDT) Subject: Re: timeline X of the primary does not match recovery target timeline Y Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Adam Tistler In-Reply-To: <1319126408.16256.66.camel@jdavis> Date: Thu, 20 Oct 2011 12:45:43 -0400 Cc: pgsql-general@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <34F74A50-6132-4603-8133-447B2AEF9953@gmail.com> <1319126408.16256.66.camel@jdavis> To: Jeff Davis X-Mailer: Apple Mail (2.1251.1) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201110/750 X-Sequence-Number: 181222 Yes you understood correctly. Would the same apply for a hot standby = situation? On Oct 20, 2011, at 12:00 PM, Jeff Davis wrote: > On Mon, 2011-09-26 at 08:54 -0400, Adam Tistler wrote: >> I am trying to set up master/slave warm standby streaming replication >> (9.1). I am not doing archiving/log shipping. I have read that you >> cannot reverse roles between the master and slave, and that once a >> slave is "promoted", you need to use pg_basebackup or rsync to copy >> files from the newly promoted master to the old master. I am fine >> with this, however, in my case all I am trying to do is re-enable the >> slave to be in recovery mode. I am doing this by deleting the trigger >> file ( which I had originally created to promote the slave to master = ) >> and moving recovery.done to recovery.conf, then restarting postgres. >> As a result I get the following error: >>=20 >> FATAL: timeline 2 of the primary does not match recovery target >> timeline 3 >=20 > Once it's promoted to a primary, you can't set it to start recovering > from another system again (without taking a new base backup). >=20 > Did I understand your question correctly? >=20 > Regards, > Jeff Davis >=20