Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id EFC0F2E004B for ; Mon, 12 May 2008 19:58:44 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 88215-01 for ; Mon, 12 May 2008 19:58:36 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from alexis.jtlnet.com (alexis.jtlnet.com [69.36.9.81]) by developer.postgresql.org (Postfix) with ESMTP id 23D3D2E005C for ; Mon, 12 May 2008 19:58:40 -0300 (ADT) Received: from [192.168.10.103] (cpe-075-177-177-228.nc.res.rr.com [::ffff:75.177.177.228]) (TLS: TLSv1/SSLv3,256bits,AES256-SHA) by alexis.jtlnet.com with esmtp; Mon, 12 May 2008 18:56:48 -0400 id 0008BBB0.4828CB30.000062D7 Message-ID: <4828CB9D.7070102@dunslane.net> Date: Mon, 12 May 2008 18:58:37 -0400 From: Andrew Dunstan User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.0.12) Gecko/20071019 Fedora/1.0.9-3.fc6 pango-text SeaMonkey/1.0.9 MIME-Version: 1.0 To: Simon Riggs CC: PostgreSQL-development Subject: Re: odd output in restore mode References: <4828AF1D.7060405@dunslane.net> <1210630440.29684.249.camel@ebony.site> In-Reply-To: <1210630440.29684.249.camel@ebony.site> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/388 X-Sequence-Number: 118387 Simon Riggs wrote: > > >> 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. >> > > Sounds like a bug you should report in the normal way. Correctness is > paramount. Or are you confusing the message in the log for file AA with > an error? > No, it had to do with pg_standby waiting for a WAL file that had already gone, somehow. I will try to reproduce it when I get a spare moment. > >> 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). >> > > I try to keep it as simple as possible, since much of this code only > gets run when you really need it to work. The request for the .history > file and the cp are examples of that. > I don't follow. AFAICT no .history file was in fact archived. ISTM that in this case we should only call RestoreWALFileForRecovery if the file in fact exists. >> 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? >> > > There already is one, but its more complex than that. (%r) > I was using %r. But the WAL files that have been restored (according to the log) are still in the archive dir. So it looks like %r isn't working properly. > There is an outstanding Windows issue with pg_standby that your help > would be appreciated with, shown on latest commitfest page. It's a > Windows issue and I don't maintain a Windows dev environment. > > The patch has been rejected for now, according to the Commitfest page. Not sure what you want my help on. BTW, none of what I reported was on Windows - it's on Linux. cheers andrew