Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id E381C6340E7 for ; Wed, 4 Mar 2009 18:05:58 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41100-09 for ; Wed, 4 Mar 2009 18:05:56 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail1.chappy.com (mail1.chappy.com [67.132.255.10]) by mail.postgresql.org (Postfix) with ESMTP id 2EAE2633CCB for ; Wed, 4 Mar 2009 18:05:56 -0400 (AST) Received: from nas01.chappy.com (nas01.chappy.com [192.168.40.21]) by mail1.chappy.com (Postfix) with ESMTP id E655D72036 for ; Wed, 4 Mar 2009 17:05:19 -0500 (EST) Received: from tech-pc04.chappy.com (tech-pc04.chappy.com [192.168.105.223]) by nas01.chappy.com (Postfix) with ESMTP id C307463F76 for ; Wed, 4 Mar 2009 17:05:19 -0500 (EST) From: Yauheni Labko Reply-To: yyl@chappy.com Organization: Chapdelaine & Co To: pgsql-admin@postgresql.org Subject: Re: standby waiting for what? Date: Wed, 4 Mar 2009 17:05:19 -0500 User-Agent: KMail/1.9.9 References: <20090304200612.GA25611@cns.vt.edu> <200903041541.06149.yyl@chappy.com> <20090304213500.GE25611@cns.vt.edu> In-Reply-To: <20090304213500.GE25611@cns.vt.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903041705.19794.yyl@chappy.com> X-Chappy-MailScanner: Found to be clean X-Chappy-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.399, required 5, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-Chappy-MailScanner-From: yyl@chappy.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200903/66 X-Sequence-Number: 31566 No. %f is the WAL filename which is needed by the server to start recovery. 00000002000000000000001C.00512178.backup will give you start and end of WAL segment, the WAL filename containing this segment and your label to identify where it might be. That's why I asked you about your backup. What is the archive_command for primary server? Yauheni Labko (Eugene Lobko) Junior System Administrator Chapdelaine & Co. (212)208-9150 On Wednesday 04 March 2009 04:35:00 pm you wrote: > On Wed, Mar 04, 2009 at 03:41:06PM -0500, Yauheni Labko wrote: > > For some reason it is looking for > > 00000002000000000000001C.00512178.backup file which is not the WAL file. > > > > Are you sure that you made initial recovery properly? > > I could have fouled this in any number of ways. Like I said > I'm trying to understand how to analyze the situation and maybe > learn something. > > OK, so my recovery.conf is set like this: > > restore_command='/usr/local/pgsql/bin/pg_standby > /data/pgsql/wals/alerts_oamp %f %p %r >> > /home/postgresql/log/alerts_oamp/recovery.log' > > So, the %f arg sent to the pg_standby command has a value of > 00000002000000000000001C.00512178.backup, right? Is that wrong? > If so, where could that have come from or how could I have trashed > the thing. > > I love fishing.