Re: pg_resetxlog question - Mailing list pgsql-general

From Tom Lane
Subject Re: pg_resetxlog question
Date
Msg-id 20700.1122218076@sss.pgh.pa.us
Whole thread Raw
In response to pg_resetxlog question  (Andrew Rawnsley <ronz@ravensfield.com>)
List pgsql-general
Andrew Rawnsley <ronz@ravensfield.com> writes:
> I have a idle database (idle = no writes for @12 hours, everything
> committed,
> full dump in between) that was shut down cleanly, then imaged to another
> machine. Forgetting a certain flag in the rsync command, my symlinked
> pg_xlog didn't make the trip, and I didn't notice until the originals
> were gone.
> (Oh, the embarrassment...)

> I ran pg_resetxlog, and reindexed the system tables. Everything seems
> fine.
> Both documentation and chatter on the lists imply that I should be
> suspect of the database. Given the particulars mentioned above
> (idleness, clean shutdown, etc), would that be true in this case?

If the database was in fact cleanly shut down before copying, you
shouldn't have any problem.  pg_xlog is only needed to reapply changes
that hadn't made it to disk yet.

            regards, tom lane

pgsql-general by date:

Previous
From: Michael Fuhr
Date:
Subject: Re: \dt gives ERROR: did not find '}' at end of input node
Next
From: Bjørn T Johansen
Date:
Subject: Could not convert UTF-8 character to ISO8859-1?