Re: Is txid_status() actually safe? / What is 011_crash_recovery.pl testing?

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Craig Ringer <craig(at)2ndquadrant(dot)com>
Subject: Re: Is txid_status() actually safe? / What is 011_crash_recovery.pl testing?
Date: 2021-02-09 20:28:26
Message-ID: CA+Tgmobctx3jMuyGC=yKQHMq4PWmNe-04gMbkapjjnU1S8gF8w@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Feb 8, 2021 at 4:52 PM Andres Freund <andres(at)anarazel(dot)de> wrote:
> The 011_crash_recovery.pl test test starts a transaction, creates a
> table, fetches the transaction's xid. Then shuts down the server in
> immediate mode. It then asserts that after crash recovery the previously
> assigned xid is shown as aborted, and that new xids are assigned after
> the xid.
>
> But as far as I can tell there's no guarantee that that is the case.

I think you are right.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2021-02-09 20:37:37 Re: [HACKERS] Custom compression methods
Previous Message Heikki Linnakangas 2021-02-09 20:22:02 Re: [POC] verifying UTF-8 using SIMD instructions