Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id F1E439FC2A8 for ; Fri, 29 Jun 2007 10:57:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 58993-02 for ; Fri, 29 Jun 2007 10:57:30 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail02.ellacoya.com (67-135-29-172.dia.static.qwest.net [67.135.29.172]) by postgresql.org (Postfix) with ESMTP id 07EF39FC279 for ; Fri, 29 Jun 2007 10:57:29 -0300 (ADT) Received: from YZANGXP ([192.168.123.13]) by mail02.ellacoya.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 29 Jun 2007 09:57:28 -0400 From: "George Wilk" To: "'Simon Riggs'" Cc: Subject: Re: missing history file Date: Fri, 29 Jun 2007 09:57:25 -0400 Message-ID: <00af01c7ba55$6c96b0f0$0d7ba8c0@ellacoya.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <1183124513.3589.104.camel@silverbirch.site> Thread-Index: Ace6U9ouyv0qrnpaSt2J+iC0obbFmQAANqmA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-OriginalArrivalTime: 29 Jun 2007 13:57:28.0568 (UTC) FILETIME=[6E1C3F80:01C7BA55] X-TM-AS-Product-Ver: SMEX-8.0.0.1181-5.000.1021-15266.003 X-TM-AS-Result: No--17.151500-4.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/299 X-Sequence-Number: 25967 Thanks, Simon. I will ignore the request for the history file in my recovery_command from now on. Is the timeline history file needed when trying to put the standby server back into the recovery mode, after it assumed the primary role? (i.e. standby server goes *live*, and is subsequently restarted in the recovery mode). Is this a valid scenario at all, or should I be taking a new base backup and starting over? I am running into some problems when attempting this. ~george -----Original Message----- From: Simon Riggs [mailto:simon@2ndquadrant.com] Sent: Friday, June 29, 2007 9:42 AM To: George Wilk Cc: pgsql-admin@postgresql.org Subject: Re: [ADMIN] missing history file On Fri, 2007-06-29 at 07:55 -0400, George Wilk wrote: > My warm standby server is looking for a history file when booting up. > It is looking for 00000001.history file to be exact. Just ignore 00000001. Recovery will work fine even if absent. Don't ignore all history files though, just that one. Hmmm, come to think of it, why is it requesting it at all? We should just skip that request. > Since my *live* server doesn't produce such file, I create an empty > 00000001.history file in the archive directory and that seems to > satisfy this requirement allowing the standby server to come up in the > recovery mode. Well, that should at least generate a message that says "history file empty, using targetTLI". > It would be nice to know though how such file is created. I know that > the *live* server creates *.backup file as a result of > pg_stop_backup() command and this file is accurately archived on the > standby server. Should I be renaming this file, or is there some > other mechanism to tell my standby server what the history file is? The timeline history file is only required when you do a recovery of a system that has itself already undergone a PITR. Have a look at pg_standby, accessible via CVS in contrib/pg_standby. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com