Re: PANIC :Call AbortTransaction when transaction id is no normal - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: PANIC :Call AbortTransaction when transaction id is no normal
Date
Msg-id 20190513081018.GC2273@paquier.xyz
Whole thread Raw
In response to Re: PANIC :Call AbortTransaction when transaction id is no normal  (Kuntal Ghosh <kuntalghosh.2007@gmail.com>)
Responses Re: PANIC :Call AbortTransaction when transaction id is no normal  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Mon, May 13, 2019 at 01:25:19PM +0530, Kuntal Ghosh wrote:
> If we fix the issue in this way, we're certainly not going to do all
> those portal,locks,memory,resource owner cleanups that are done
> inside AbortTransaction() for a normal transaction ID. But, I'm not
> sure how relevant those steps are since the database is anyway
> shutting down.

And it is happening in bootstrap, meaning that the data folder is most
likely toast, and needs to be reinitialized.  TransactionLogFetch()
treats bootstrap and frozen XIDs as always committed, so from this
perspective it is not wrong either to complain that this transaction
has already been committed when attempting to abort it.  Not sure
what's a more user-friendly behavior in this case though.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Masahiko Sawada
Date:
Subject: Re: [Proposal] Table-level Transparent Data Encryption (TDE) and KeyManagement Service (KMS)
Next
From: Paul Guo
Date:
Subject: Re: standby recovery fails (tablespace related) (tentative patch and discussion)