Re: Sequence's value can be rollback after a crashed recovery. - Mailing list pgsql-hackers

From Bossart, Nathan
Subject Re: Sequence's value can be rollback after a crashed recovery.
Date
Msg-id 5F9F6F84-5948-4BA9-8080-DAA939B2B011@amazon.com
Whole thread Raw
In response to Re: Sequence's value can be rollback after a crashed recovery.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 11/23/21, 1:41 PM, "Tom Lane" <tgl@sss.pgh.pa.us> wrote:
> I wrote:
>> I wonder though if we shouldn't try to improve the existing text.
>> The phrasing "never rolled back" seems like it's too easily
>> misinterpreted.  Maybe rewrite the <caution> block like
>> ...
>
> A bit of polishing later, maybe like the attached.

The doc updates look good to me.  Yesterday I suggested possibly
adding a way to ensure that nextval() called in an uncommitted
transaction was persistent, but I think we'd have to also ensure that
synchronous replication waits for those records, too.  Anyway, I don't
think it is unreasonable to require the transaction to be committed to
avoid duplicates from nextval().

Nathan


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Post-CVE Wishlist
Next
From: Joshua Brindle
Date:
Subject: Re: Support for NSS as a libpq TLS backend