From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Mike Broers <mbroers@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: starting postgres with an empty px_xlog folder
Date: Mon, 25 Jun 2012 10:19:28 -0500
Message-ID: <4FE83B300200002500048A9D@gw.wicourts.gov> (raw)
In-Reply-To: <CAB9893gYG8mpwoLPe+pQ2CdhNv5GETyveLvb8_FErK+rH_g2CQ@mail.gmail.com>
References: <4FE5D68A0200002500048A32@gw.wicourts.gov>
<4FE6BE9C.7000303@ringerc.id.au>
<CAB9893gYG8mpwoLPe+pQ2CdhNv5GETyveLvb8_FErK+rH_g2CQ@mail.gmail.com>
Mike Broers <mbroers@gmail.com> 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
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: Kevin.Grittner@wicourts.gov, mbroers@gmail.com
Subject: Re: starting postgres with an empty px_xlog folder
In-Reply-To: <4FE83B300200002500048A9D@gw.wicourts.gov>
References: <4FE5D68A0200002500048A32@gw.wicourts.gov> <4FE6BE9C.7000303@ringerc.id.au> <CAB9893gYG8mpwoLPe+pQ2CdhNv5GETyveLvb8_FErK+rH_g2CQ@mail.gmail.com> <4FE83B300200002500048A9D@gw.wicourts.gov>
* 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