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

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Is txid_status() actually safe? / What is 011_crash_recovery.pl testing?
Дата
Msg-id CAMsr+YH0yFadUtPHE8OLJ8B=FVjqsaknhiPCtfxYPnrs2TE1SQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Is txid_status() actually safe? / What is 011_crash_recovery.pl testing?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Wed, 10 Feb 2021 at 04:28, Robert Haas <robertmhaas@gmail.com> wrote:
On Mon, Feb 8, 2021 at 4:52 PM Andres Freund <andres@anarazel.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.


Andres, I missed this mail initially. I'll look into it shortly.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 2ndQuadrant - PostgreSQL Solutions for the Enterprise

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: MaxOffsetNumber for Table AMs
Следующее
От: Robert Haas
Дата:
Сообщение: pg_receivewal makes a bad daemon