Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EFECCB5DCE2 for ; Mon, 26 Sep 2011 10:25:35 -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 06109-01-8 for ; Mon, 26 Sep 2011 13:25:29 +0000 (UTC) X-Greylist: delayed 00:23:47.524534 by SQLgrey-1.8.0-rc2 Received: from mail-vx0-f174.google.com (mail-vx0-f174.google.com [209.85.220.174]) by mail.postgresql.org (Postfix) with ESMTP id A1EC4B5E08E for ; Mon, 26 Sep 2011 10:18:32 -0300 (ADT) Received: by vcbfk10 with SMTP id fk10so2764594vcb.19 for ; Mon, 26 Sep 2011 06:18:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=TucLbF3b4wE9n2wRKdZ/4aytBIms/R/mctu7LxJJlg0=; b=p0xyOYsjPXBBTkm22lOV01SsVvnfUFprZIqV/XUusjoAvIpeEfulLM+HKJeI/MH94y Yw1tAOc0Q+Q47F3lxt/SqtYE7q9bS33RBXg7PwNuBReIcZRznr5AF5Fp3jqaaNmmEsHU kZd7MCQkbdFQTcHJrLyEY7xNO2bfdKqaLOXBM= Received: by 10.52.177.1 with SMTP id cm1mr6412438vdc.78.1317041684950; Mon, 26 Sep 2011 05:54:44 -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 ed10sm12509375vdb.19.2011.09.26.05.54.44 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Sep 2011 05:54:44 -0700 (PDT) From: Adam Tistler Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: timeline X of the primary does not match recovery target timeline Y Date: Mon, 26 Sep 2011 08:54:43 -0400 Message-Id: <34F74A50-6132-4603-8133-447B2AEF9953@gmail.com> To: pgsql-general@postgresql.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.889 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01 X-Spam-Level: X-Archive-Number: 201109/885 X-Sequence-Number: 180243 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: FATAL: timeline 2 of the primary does not match recovery target = timeline 3 Relevant info: on master: postgresql.conf max_wal_senders =3D 5 wal_keep_segments =3D 32 checkpoint_segments =3D 8 wal_level =3D hot_standby on slave: recovery.conf standby_mode =3D on primary_conninfo =3D 'host=3D172.16.135.205 port=3D5432 user=3Dreplicator = password=3Dreplicator' trigger_file =3D '/tmp/pgsql.trigger' everything in postgresql.conf on the slave is default related to = replication. On a side note I am slightly confused as to why someone would use = "archive mode/restore_command" in combination with streaming = replication. As I stated above, I am not archiving/restoring on either = the master or slave, I am simply relying on streaming replication.... is = this the wrong approach?? Thanks in advance for the help.=