Re: Can't Restart ver 8.0b3 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Can't Restart ver 8.0b3
Date
Msg-id 4484.1103733161@sss.pgh.pa.us
Whole thread Raw
In response to Can't Restart ver 8.0b3  ("Dave Hartwig" <daveh@Routescape.com>)
Responses Re: Can't Restart ver 8.0b3
List pgsql-hackers
"Dave Hartwig" <daveh@Routescape.com> writes:
> LOG:  next transaction ID: 884736; next OID: 306834
> PANIC:  could not access status of transaction 884736
> DETAIL:  could not read from file
> "/usr/local/pgsql8b3/data/pg_clog/0000" at offset 221184: Success
> LOG:  startup process (PID 17774) was terminated by signal 6
> LOG:  aborting startup due to startup process failure

Hmm ... do we have a problem when the next XID is exactly at a page
boundary?  I'll look into that.

> LOG:  next transaction ID: 1048576; next OID: 306834
> PANIC:  could not access status of transaction 1048576
> DETAIL:  could not open file "/usr/local/pgsql8b3/data/pg_clog/0001": No
> such file or directory

IIRC, pg_resetxlog doesn't have any provision to create new pg_clog
segments.  Which is probably an oversight, but it's easy enough to
do it by hand.  Do something likedd bs=8k count=1 </dev/zero >/usr/local/pgsql8b3/data/pg_clog/0001
and everything should be fine.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Thoughts about updateable views
Next
From: Tom Lane
Date:
Subject: Re: oldish libpq bug still in RC2