From: Romain Thouvenin <rthouvenin@sfwan.com>
To: pgsql-admin@postgresql.org
Subject: problem with WAL files
Date: Thu, 30 Jun 2005 18:49:48 +0200
Message-ID: <42C422AC.7090309@sfwan.com> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: rthouvenin@sfwan.com
Subject: Re: problem with WAL files
In-Reply-To: <42C422AC.7090309@sfwan.com>
References: <42C422AC.7090309@sfwan.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox