Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5EC341337B81 for ; Mon, 25 Oct 2010 16:11:59 -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 98797-04-2 for ; Mon, 25 Oct 2010 19:11:51 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from relay.ihostexchange.net (relay.ihostexchange.net [66.46.182.51]) by mail.postgresql.org (Postfix) with ESMTP id 61E8D1337B95 for ; Mon, 25 Oct 2010 16:11:51 -0300 (ADT) Received: from VMBX112.ihostexchange.net ([192.168.30.12]) by HUB101.ihostexchange.net ([66.46.182.51]) with mapi; Mon, 25 Oct 2010 15:11:50 -0400 From: Matt Chesler To: "pgsql-admin@postgresql.org" Date: Mon, 25 Oct 2010 15:11:48 -0400 Subject: Problem with Streaming Replication/Hot Standby Thread-Topic: Problem with Streaming Replication/Hot Standby Thread-Index: Act0eHoTG+ASgCrmShGkWQ/xiDYzqg== Message-ID: <1DF79634-7684-4A2E-8267-22D7A5738ECF@pragmatrading.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.419 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, RCVD_IN_DNSWL_NONE=-0.0001, SARE_SPEC_REPLICA=0.72 X-Spam-Level: ** X-Archive-Number: 201010/222 X-Sequence-Number: 35963 I'm trying to get started with Streaming Replication and Hot Standby using = PostgreSQL 9.0 (9.0.0-1PGDG.el5 installed from PGDG). I've followed the instructions at http://wiki.postgresql.org/wiki/Binary_Re= plication_Tutorial#Binary_Replication_in_6_Steps using two fresh databases,= but I'm not having any success. When I initially start up the standby ser= ver, I see the following entries in the log, which are expected since the p= rimary is not yet running: FATAL: could not connect to the primary server: could not connect to serve= r: Connection refused Is the server running on host "database1.example.com" and a= ccepting TCP/IP connections on port 5432? This message repeats indefinitely until I start the primary server. Once I= start the postgres server on the primary, I see the following message in t= he standby's log: LOG: streaming replication successfully connected to primary FATAL: could not receive data from WAL stream: FATAL: requested WAL segme= nt 000000010000000000000000 has already been removed On the primary, I see the following entries in the log: LOG: replication connection authorized: user=3Dpostgres host=3D10.1.2.13 p= ort=3D60977 FATAL: requested WAL segment 000000010000000000000000 has already been rem= oved If I look in the pg_xlog directory, the file mentioned is very clearly stil= l present. Can someone please explain what I'm doing wrong? I've read thr= ough all of the documentation I've been able to find (see below), and I hav= e not been able to make any progress. Any assistance is greatly appreciate= d. http://wiki.postgresql.org/wiki/Hot_Standby http://wiki.postgresql.org/wiki/Binary_Replication_Tutorial http://wiki.postgresql.org/wiki/Streaming_Replication Disclaimer: http://pragmatrading.com/disclaimer.html