Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 89F5A2B2868 for ; Mon, 25 Jun 2012 12:19:57 -0300 (ADT) Received: from gwmta.wicourts.gov ([165.219.244.99] helo=gw.wicourts.gov) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SjB4x-0003lb-5U for pgsql-admin@postgresql.org; Mon, 25 Jun 2012 15:19:56 +0000 Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Mon, 25 Jun 2012 10:19:37 -0500 Message-Id: <4FE83B300200002500048A9D@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Mon, 25 Jun 2012 10:19:28 -0500 From: "Kevin Grittner" To: "Mike Broers" , Subject: Re: starting postgres with an empty px_xlog folder References: <4FE5D68A0200002500048A32@gw.wicourts.gov> <4FE6BE9C.7000303@ringerc.id.au> In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Pg-Spam-Score: -4.2 (----) X-Archive-Number: 201206/116 X-Sequence-Number: 39707 Mike Broers wrote: > Ultimately the hosting service restored the files that they had > not brought over during their maintenance migration and we started > up ok. So that was a relief. +1 > We had archived log files but it did not appear that the archive > destination was caught up with the xlog the cluster was > complaining about. > > Given that the database server was shut down cleanly, and all > other data besides pg_xlog was available as expected (not > corrupted), what would have been the problem with pg_resetxlogs? Frankly, the odds would have been pretty good that you would have come up without lost data or a corrupted database; but it's a matter of the degree of confidence in that. Startup and shutdown code, by its nature, is not exercised as heavily as most PostgreSQL code. Startup after using a data recovery utility is even less heavily exercised. Less frequently executed code is more likely to have subtle bugs which only show up in rare corner cases. I like to minimize my risk. -Kevin