Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id B9897632B10 for ; Mon, 23 Aug 2010 16:18:04 -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 54669-01 for ; Mon, 23 Aug 2010 19:17:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 578BC6322C8 for ; Mon, 23 Aug 2010 16:17:57 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o7NJHtY6010239; Mon, 23 Aug 2010 15:17:55 -0400 (EDT) To: fazool mein cc: pgsql-admin@postgresql.org Subject: Re: Error while setting up streaming replication, postgres 9.0-beta 4 In-reply-to: References: Comments: In-reply-to fazool mein message dated "Mon, 23 Aug 2010 12:07:54 -0700" Date: Mon, 23 Aug 2010 15:17:55 -0400 Message-ID: <10238.1282591075@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.409 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FS_REPLICA=3.599, SARE_SPEC_REPLICA=0.72, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: ** X-Archive-Number: 201008/151 X-Sequence-Number: 35400 fazool mein writes: > I'm trying to test streaming replication. I set up a primary and secondary. > The primary starts normal, but when I start the standby, it doesn't start > up. The log looks like this: > LOG: database system was interrupted while in recovery at log time > 2010-08-23 13:30:43 EDT > HINT: If this has occurred more than once some data might be corrupted and > you might need to choose an earlier recovery target. > LOG: entering standby mode > WARNING: WAL was generated with wal_level=minimal, data may be missing > HINT: This happens if you temporarily set wal_level=minimal without taking > a new base backup. > FATAL: hot standby is not possible because wal_level was not set to > "hot_standby" on the master server > HINT: Either set wal_level to "hot_standby" on the master, or turn off > hot_standby here. > LOG: startup process (PID 5875) exited with exit code 1 > LOG: aborting startup due to startup process failure > Note that I have checked multiple times that 'wal_level' is set to > 'hot_standby' on the primary, You need to do that *before* taking your base backup. The WARNING above indicates that the backup was taken with an inadequate wal_level setting. regards, tom lane