problem with WAL files

Поиск
Список
Период
Сортировка
От Romain Thouvenin
Тема problem with WAL files
Дата
Msg-id 42C422AC.7090309@sfwan.com
обсуждение исходный текст
Ответы Re: problem with WAL files
Re: problem with WAL files
Список pgsql-admin
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


В списке pgsql-admin по дате отправления:

Предыдущее
От: Hannes Dorbath
Дата:
Сообщение: Re: unicode
Следующее
От: Jeff Frost
Дата:
Сообщение: Re: problem with WAL files