Re: Sequence's value can be rollback after a crashed recovery.

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Sequence's value can be rollback after a crashed recovery.
Date: 2021-11-22 07:07:15
Message-ID: CAKFQuwZCRFzyF4ys9u9d5ZcHfF3bZGWoTLV4BLDHSCnr+GY_dA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sunday, November 21, 2021, Andy Fan <zhihui(dot)fan1213(at)gmail(dot)com> wrote:
>
> Should we guarantee the sequence's nextval should never be rolled back
> even in a crashed recovery case?
> I can produce the rollback in the following case:
>

This seems to be the same observation that was made a little over a year
ago.

https://www.postgresql.org/message-id/flat/ea6485e3-98d0-24a7-094c-87f9d5f9b18f%40amazon.com#4cfe7217c829419b769339465e8c2915

I don’t think the suggested documentation ever got written but haven’t
looked for it either.

David J.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andy Fan 2021-11-22 07:13:50 Re: Keep notnullattrs in RelOptInfo (Was part of UniqueKey patch series)
Previous Message Richard Guo 2021-11-22 07:04:58 Re: A problem about partitionwise join