Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > odd output in r...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 24 Topic 9349 of 9628
Post > Topic >>

odd output in restore mode

by andrew@[EMAIL PROTECTED] (Andrew Dunstan) May 12, 2008 at 04:57 PM

I have just been working on setting up a continuous recovery failover 
system, and noticed some odd log lines, shown below. (Using 8.3).

First note that our parsing of recovery.conf in xlog.c is pretty bad, 
and at least we need to document the quirks if it's not going to be 
fixed. log_restartpoints is said to be boolean, but when I set it to an 
unquoted true I got a fatal error, while a quoted 'on' sets it to false, 
as seen. Ick. What is more, I apparently managed to get the recovery 
server to lose a WAL file and hang totally by having a bad 
recovery.conf. Triple ick.

Second, what is all this about .history files? My understanding is that 
they are not necessary, so surely we should try to stat them to see if 
they are present before trying to copy them. These lines are going to 
confuse a lot of people, I suspect (including me).

Lastly, not quite related to this output, but in the same general area, 
should we have an option on pg_standby to allow removing the archive 
file after it has been restored?

cheers

andrew





LOG:  database system was interrupted; last known up at 2008-05-12 
15:18:23 EDT
LOG:  starting archive recovery
LOG:  log_restartpoints = false
LOG:  restore_command = '../bin/pg_standby -t ../common_archive/failover 
.../common_archive %f %p %r '
cp: cannot stat `../common_archive/00000001.history': No such file or 
directory
cp: cannot stat `../common_archive/00000001.history': No such file or 
directory
cp: cannot stat `../common_archive/00000001.history': No such file or 
directory
LOG:  restored log file "0000000100000000000000A5.00000068.backup" from 
archive
LOG:  restored log file "0000000100000000000000A5" from archive
LOG:  automatic recovery in progress
LOG:  redo starts at 0/A50000B0
LOG:  restored log file "0000000100000000000000A6" from archive
LOG:  restored log file "0000000100000000000000A7" from archive
LOG:  restored log file "0000000100000000000000A8" from archive
LOG:  restored log file "0000000100000000000000A9" from archive
trigger file found
LOG:  could not open file "pg_xlog/0000000100000000000000AA" (log file 
0, segment 170): No such file or directory
LOG:  redo done at 0/A9000068
LOG:  restored log file "0000000100000000000000A9" from archive
cp: cannot stat `../common_archive/00000002.history': No such file or 
directory
cp: cannot stat `../common_archive/00000002.history': No such file or 
directory
cp: cannot stat `../common_archive/00000002.history': No such file or 
directory
LOG:  selected new timeline ID: 2
cp: cannot stat `../common_archive/00000001.history': No such file or 
directory
cp: cannot stat `../common_archive/00000001.history': No such file or 
directory
cp: cannot stat `../common_archive/00000001.history': No such file or 
directory
LOG:  archive recovery complete
LOG:  database system is ready to accept connections
LOG:  autovacuum launcher started


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers




 24 Posts in Topic:
odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 16:57:01 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-12 23:14:00 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 18:58:37 
Re: odd output in restore mode
dpage@[EMAIL PROTECTED]   2008-05-18 22:16:17 
Re: odd output in restore mode
bruce@[EMAIL PROTECTED]   2008-06-30 18:13:12 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-06-30 19:29:03 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 00:37:53 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 21:15:55 
Re: odd output in restore mode
tgl@[EMAIL PROTECTED] (T  2008-05-12 21:38:58 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 23:03:25 
Re: odd output in restore mode
dpage@[EMAIL PROTECTED]   2008-05-13 17:15:12 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-18 08:38:12 
Re: odd output in restore mode
xzilla@[EMAIL PROTECTED]   2008-05-12 21:06:26 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-12 22:40:38 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 06:44:35 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 06:37:24 
Re: odd output in restore mode
dpage@[EMAIL PROTECTED]   2008-05-13 08:42:26 
Re: odd output in restore mode
simon@[EMAIL PROTECTED]   2008-05-13 09:32:55 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-13 08:00:29 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-13 08:26:35 
Re: odd output in restore mode
alvherre@[EMAIL PROTECTED  2008-05-13 11:08:52 
Re: odd output in restore mode
andrew@[EMAIL PROTECTED]   2008-05-13 12:05:58 
Re: odd output in restore mode
alvherre@[EMAIL PROTECTED  2008-05-13 12:11:30 
Re: odd output in restore mode
bruce@[EMAIL PROTECTED]   2008-06-30 18:11:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Fri Jul 4 9:39:18 CDT 2008.