X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 478A7529A0 for ; Thu, 30 Jun 2005 13:50:03 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 37903-02 for ; Thu, 30 Jun 2005 16:49:52 +0000 (GMT) Received: from smtp-out.fr.clara.net (smtp-out.fr.clara.net [212.43.194.39]) by svr1.postgresql.org (Postfix) with ESMTP id 898D6528D5 for ; Thu, 30 Jun 2005 13:49:51 -0300 (ADT) Received: from [127.0.0.1] (unknown [213.223.114.15]) by smtp-out.fr.clara.net (Postfix) with ESMTP id D224C88192 for ; Thu, 30 Jun 2005 18:49:50 +0200 (CEST) Message-ID: <42C422AC.7090309@sfwan.com> Date: Thu, 30 Jun 2005 18:49:48 +0200 From: Romain Thouvenin User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: fr, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: problem with WAL files Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/292 X-Sequence-Number: 18047 I'm currently testing PITR features of 8.0 release. I followed the steps given by the documentation and thus deleted the WAL files in pg_xlog after having restored the database. But when I put the recovery.conf file and try to start postgres, it fails. The log file says : 2005-06-30 17:57:50 LOG: database system was shut down at 2005-06-30 17:57:26 Paris, Madrid 2005-06-30 17:57:50 LOG: starting archive recovery 2005-06-30 17:57:50 LOG: restore_command = "copy E:\\temp\\archive\\%f "%p"" 2005-06-30 17:57:50 LOG: recovery_target_time = 2005-07-01 00:45:00+02 2005-06-30 17:57:50 LOG: could not open file "C:/Program Files/PostgreSQL/8.0/data/pg_xlog/00000001000000000000000B" (log file 0, segment 11): No such file or directory 2005-06-30 17:57:50 LOG: invalid primary checkpoint record 2005-06-30 17:57:50 LOG: could not open file "C:/Program Files/PostgreSQL/8.0/data/pg_xlog/00000001000000000000000B" (log file 0, segment 11): No such file or directory 2005-06-30 17:57:50 LOG: invalid secondary checkpoint record 2005-06-30 17:57:50 PANIC: could not locate a valid checkpoint record This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. 2005-06-30 17:57:50 LOG: startup process (PID 356) was terminated by signal 3 2005-06-30 17:57:50 LOG: aborting startup due to startup process failure 2005-06-30 17:57:51 LOG: logger shutting down What's the problem ? I have an idea, but can't solve it : When I want to restore the database, the "psql -U postgres essai < save.txt" command fails because it seems that psql read the password in save.txt (it don't let me type it) and fails to connect. So I first connected and then restored with the \i command. Maybe this way of proceeding alter WAL files in a bad way ? I tryed many ways of restoring and deleting/putting WAL files, but all failed. Can somebody help me ? Thanks. Romain Thouvenin