Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 95A43358049 for ; Sat, 28 Apr 2012 19:45:54 -0300 (ADT) Received: from mx03.aalto.fi ([130.233.222.102]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SOGOl-00018w-2f for pgsql-bugs@postgresql.org; Sat, 28 Apr 2012 22:45:53 +0000 Received: from mx03.aalto.fi (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 615A728435; Sun, 29 Apr 2012 01:45:38 +0300 (EEST) Received: from EXHUB04.org.aalto.fi (ex-hub04.org.aalto.fi [130.233.222.117]) by mx03.aalto.fi (Postfix) with ESMTP id 45E1228434; Sun, 29 Apr 2012 01:45:38 +0300 (EEST) Received: from [10.121.78.0] (212.226.65.71) by mail.aalto.fi (130.233.222.117) with Microsoft SMTP Server (TLS) id 14.1.339.1; Sun, 29 Apr 2012 01:45:38 +0300 Message-ID: <4F9C7311.1030103@aalto.fi> Date: Sun, 29 Apr 2012 01:45:37 +0300 From: =?UTF-8?B?UGV0dGVyaSBSw6R0eQ==?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; fi; rv:1.8.1.23) Gecko/20090916 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: Simon Riggs CC: Subject: Re: BUG #6619: Misleading output from slave when host is not running References: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [212.226.65.71] X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/215 X-Sequence-Number: 32966 On 27.04.2012 17:16, Simon Riggs wrote: > On Fri, Apr 27, 2012 at 8:47 AM, wrote: > >> 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 28761) exited with exit code 1 >> LOG: aborting startup due to startup process failure >> >> The error message above on the FATAL line is wrong (or at least misleading). >> The real problem should be that it can't connect to the master. The >> wal_level on the master is hot_standby (captured after I started it): > > The HINT that we should simply set something on the master is a little > misleading with respect to timing. However, if the master and the > standby aren't even connected and you know that, how did you expect > there to be a causal link between the setting on the master and the > state of the standby? > I started investigating after seeing that it didn't start up and found that the master had a firewall preventing from connecting to the port where I had setup postgres to listen. > > What do you suggest the messages say? > If the slave had no way to connect to the master then how can the slave tell how "hot_standby" is configured there? I am expecting the message to tell me that it can't connect to the master. Regards, Petteri