Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X4YJO-0008AB-DZ for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jul 2014 16:32:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X4YJN-0003j9-UG for pgsql-admin@arkaria.postgresql.org; Tue, 08 Jul 2014 16:32:09 +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 1X4YJN-0003iv-2j for pgsql-admin@postgresql.org; Tue, 08 Jul 2014 16:32:09 +0000 Received: from imx3.etecsa.cu ([200.55.152.137]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X4YJI-0007iY-3H for pgsql-admin@postgresql.org; Tue, 08 Jul 2014 16:32:07 +0000 Received: from Unknown ([192.168.91.45] helo=mn3.etecsa.cu) by imx3.etecsa.cu with ESMTP id sCTupuHi40022; Tue, 8 Jul 2014 12:29:56 -0500 Received: (qmail 5298 invoked by uid 11185); 8 Jul 2014 17:29:56 -0000 Received: from 192.168.91.6 by mn3.etecsa.cu (envelope-from , uid 502) with qmail-scanner-2.08 (spamassassin: 3.2.5. Clear:RC:1(192.168.91.6):. Processed in 0.022661 secs); 08 Jul 2014 17:29:56 -0000 Received: from unknown (HELO webmail.etecsa.cu) ([192.168.91.6]) (envelope-sender ) by mn2.etecsa.cu (qmail-ldap-1.03) with SMTP for ; 8 Jul 2014 17:29:56 -0000 Received: from 192.168.207.54 (SquirrelMail authenticated user gilberto.castillo) by webmail.etecsa.cu with HTTP; Tue, 8 Jul 2014 12:29:56 -0500 (GMT+5) Message-ID: <52190.192.168.207.54.1404840596.squirrel@webmail.etecsa.cu> In-Reply-To: <53BC1A2F.4010501@gmail.com> References: <53BC1A2F.4010501@gmail.com> Date: Tue, 8 Jul 2014 12:29:56 -0500 (GMT+5) Subject: Re: recovery.conf restore_command From: "Gilberto Castillo" To: "John Scalia" Cc: "pgsql-admin@postgresql.org" Reply-To: gilberto.castillo@etecsa.cu User-Agent: SquirrelMail/1.4.8-5.el5_4.10 MIME-Version: 1.0 X-Priority: 3 (Normal) Importance: Normal X-SpamTest-Envelope-From: gilberto.castillo@etecsa.cu X-SpamTest-Info: Profiles 63681 [Jul 08 2014] X-SpamTest-Method: none X-SpamTest-Rate: 0 X-SpamTest-Status: Not detected X-SpamTest-Status-Extended: not_detected X-SpamTest-Version: SMTP-Filter Version 3.0.0 [0285], KAS30/SDK/Release X-Anti-Virus: Kaspersky Mail Gateway, version: 5.6.28/RELEASE, bases: 20140401T050822 #7726142, check: 20140708 clean Content-Type: multipart/mixed; boundary="=sCTvpKNe07137=imx3.etecsa.cu=" X-Pg-Spam-Score: -0.7 (/) 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 This is a multi-part message in MIME format. --=sCTvpKNe07137=imx3.etecsa.cu= Content-Disposition: inline Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit > > 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. In my case I use a script where I can place several operations like deleting the log etc. Saludos, Gilberto Castillo La Habana, Cuba --=sCTvpKNe07137=imx3.etecsa.cu= Content-Type: text/plain Content-Disposition: inline --- This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu Visit our web-site: , --=sCTvpKNe07137=imx3.etecsa.cu= Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin --=sCTvpKNe07137=imx3.etecsa.cu=--