Re: 0-byte 2PC File

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vincent Lau <vincent(dot)lau(at)rentrakmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: 0-byte 2PC File
Date: 2013-07-14 16:19:34
Message-ID: 16424.1373818774@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Vincent Lau <vincent(dot)lau(at)rentrakmail(dot)com> writes:
> We are running 8.4.13 on this particular database and recently we have been
> getting empty two phase commit state files inside the pg_twophase
> directory. These prepared transactions can't be rolled back due to the
> empty state file. Here is an example of the error message.

> ERROR: two-phase state file for transaction 121421120 is corrupt

> The only way to get rid of this is to restart the database, which is just a
> bandaid solution at this point.

Is there a waiting transaction corresponding to that file? If not you
could just manually remove the file, I think. Not that that isn't a
band-aid, but it'd be less painful than a restart.

Do you see any error messages logged at the time the transaction PREPARE
is attempted?

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Vincent Lau 2013-07-14 21:04:00 Re: 0-byte 2PC File
Previous Message Vincent Lau 2013-07-13 23:41:23 0-byte 2PC File