From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jeff Boes <jboes@nexcerpt.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Transaction logs gone, how to restart?
Date: Tue, 09 Mar 2004 10:51:06 -0500
Message-ID: <25549.1078847466@sss.pgh.pa.us> (raw)
In-Reply-To: <c07416077e235c92391d3db782b6a34d@news.teranews.com>
References: <c07416077e235c92391d3db782b6a34d@news.teranews.com>
Jeff Boes <jboes@nexcerpt.com> writes:
> We backed up our test server yesterday (Pg 7.4.1) as the first step in switching
> from Red Hat 7 to Whitebox. However, we failed to back up the transaction and
> commit logs. Now that the OS and database are back to where they were, we get
> this message on attempting to restart:
> LOG: could not open file "/usr/local/pgsql/data/pg_xlog/00000041000000EE" (log
> file 65, segment 238): No such file or directory
Urgh. If you shut down the postmaster cleanly before backing up, then
you don't really need pg_xlog --- running pg_resetxlog will get you out
of the above problem. However, if you did not save pg_clog then I fear
you are well and truly screwed.
How long ago was your last complete (database-wide) VACUUM? If it was
just before shutdown then you may be able to achieve some semblance of
a consistent database, but if it was awhile ago then you do not have
a database but just a pile of bits :-(
regards, tom lane
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: tgl@sss.pgh.pa.us, jboes@nexcerpt.com
Subject: Re: Transaction logs gone, how to restart?
In-Reply-To: <25549.1078847466@sss.pgh.pa.us>
References: <c07416077e235c92391d3db782b6a34d@news.teranews.com> <25549.1078847466@sss.pgh.pa.us>
* 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