From: Greg Stark <gsstark@mit.edu>
To: pgsql-general@postgresql.org
Subject: Re: Restoring fscked up postgres 7.1
Date: 21 Jan 2005 11:37:15 -0500
Message-ID: <87651qagck.fsf@stark.xeocode.com> (raw)
In-Reply-To: <12179534609.20050121174505@grafton.lv>
References: <10071638046.20050121153328@grafton.lv>
<20050121153001.GC3749@svana.org>
<12179534609.20050121174505@grafton.lv>
Kristaps Armanis <krisha@grafton.lv> writes:
> Is there any solution?
I think what you have to do is use pg_resetxlog with -x and a value just shy
of 2^32. then pg_dump and restore into a fresh database. I've never done it
though so perhaps you should wait until someone with more experience speaks
up. I would also suggest taking a cold backup of the bad database before
running pg_resetxlog.
--
greg
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: gsstark@mit.edu, pgsql-general@postgresql.org
Subject: Re: Restoring fscked up postgres 7.1
In-Reply-To: <87651qagck.fsf@stark.xeocode.com>
References: <10071638046.20050121153328@grafton.lv> <20050121153001.GC3749@svana.org> <12179534609.20050121174505@grafton.lv> <87651qagck.fsf@stark.xeocode.com>
* 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