Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X4Y7l-0007LW-Hb for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jul 2014 16:20:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X4Y7k-0003pF-I4 for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jul 2014 16:20:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X4Y7j-0003p6-E9 for pgsql-admin@postgresql.org; Tue, 08 Jul 2014 16:20:07 +0000 Received: from mail-yk0-x235.google.com ([2607:f8b0:4002:c07::235]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1X4Y7g-0007RR-12 for pgsql-admin@postgresql.org; Tue, 08 Jul 2014 16:20:05 +0000 Received: by mail-yk0-f181.google.com with SMTP id 9so2339042ykp.40 for ; Tue, 08 Jul 2014 09:20:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=X/U4YrMHQbQV+7G/+/qLoZXl7b44H5Hu9+E/u+lAOZ8=; b=PNAc4Ttb4lK2x8mXklL5yj3XxXep5KPnP2MHiQicEsy6oJACCDmcBmMcD1YLP1gbBx 8vC6+UrmfGnPOm0IkxTyYGJ9YCfgXJMmiXb0tZ+Or+5P5VfwYqI5HSBuC8YXO5hjR6Yf GqT6KeVLYdGn+V5giPgElYfUoUtGvjbugQ1TOZJXvxq2t4YyjOLh9BymEljq1JpUkJMQ fkpfLUFCIcXwOgqEieW0BvzFuCrdqdmFor1NKN+Fx+PWZOA6AY/ZEpTgJMXnCPYKWgnb 295HgUYEd8YGUjUaj+NPDXiZS6eGCiP3/DVJc2tT8LtAbqZSqz9TkEdOGhBBF+N26sKt fe0A== X-Received: by 10.236.179.69 with SMTP id g45mr21598104yhm.81.1404836403082; Tue, 08 Jul 2014 09:20:03 -0700 (PDT) Received: from [192.168.254.5] (h77.89.102.166.static.ip.windstream.net. [166.102.89.77]) by mx.google.com with ESMTPSA id i28sm9878890yhd.46.2014.07.08.09.20.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 08 Jul 2014 09:20:02 -0700 (PDT) Message-ID: <53BC1A2F.4010501@gmail.com> Date: Tue, 08 Jul 2014 12:19:59 -0400 From: John Scalia User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: recovery.conf restore_command Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi all, I was experimenting with the restore_command on one of my standby systems. Originally this command just had: restore_command='cp /mnt/wallogs/archive/%f %p' And it was, and is working just fine, but since that doesn't delete the WAL files from the archive directory, I wanted to try: restore_command='pg_standby /mnt/wallogs/archive %f %p %r' But, the database then refused to start. The log showed: LOG: entering standby mode FATAL: could not restore file "00000003.history" from archive: return code 32512 LOG: startup process (PID 22847) existed with exit code 1 Now, that history file was already in the standby's pg_xlog directory. So, I tried copying it back to the archive directory and trying again, but no joy. I double-checked the permissions on the file and the directory and those were good. So, I just changed the restore_command back to its original form, and the standby then started successfully. Did I use pg_standby incorrectly? FYI, these servers are streaming replication using Version 9.3.3. -- Jay -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin