Re: Postmaster cannot start - Mailing list pgsql-general

From Tom Lane
Subject Re: Postmaster cannot start
Date
Msg-id 2634.1147701830@sss.pgh.pa.us
Whole thread Raw
In response to Re: Postmaster cannot start  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
List pgsql-general
"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> But not sure why it reports the following error
> message (which looks like a post-commit cleanup caused error):

>     DEBUG:  AbortCurrentTransaction
>     PANIC:  cannot abort transaction 14135438, it was already committed

I think this is an artifact of the fact that VACUUM FULL commits its own
transaction before it starts the final index cleanup pass.  We ought to
think of a better way to handle that sometime.  I don't recall having
seen a PANIC like this reported before, but on reflection it seems like
this would be guaranteed to happen for any ERROR condition occurring
during that last pass.  An error there would be pretty improbable, but
surely not impossible.

As for the OP's problem, it seems pretty suspicious that we got through
one cycle of vacuuming pg_class_relname_nsp_index and then the second
one failed with what seems to be a bad block link.  If that bad link was
there before, why didn't it fail the first time through?  I'm wondering
about flaky hardware ...

            regards, tom lane

pgsql-general by date:

Previous
From: "Qingqing Zhou"
Date:
Subject: Re: Postmaster cannot start
Next
From: Martijn van Oosterhout
Date:
Subject: Re: Getting information about sequences