Re: Two-phase update of restart_lsn in LogicalConfirmReceivedLocation - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Two-phase update of restart_lsn in LogicalConfirmReceivedLocation
Date
Msg-id 15463.1520465527@sss.pgh.pa.us
Whole thread Raw
In response to Re: Two-phase update of restart_lsn in LogicalConfirmReceivedLocation  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Two-phase update of restart_lsn in LogicalConfirmReceivedLocation  (Craig Ringer <craig@2ndquadrant.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Thu, Mar 1, 2018 at 2:03 AM, Craig Ringer <craig@2ndquadrant.com> wrote:
>> So I can't say it's definitely impossible. It seems astonishingly unlikely,
>> but that's not always good enough.

> Race conditions tend to happen a lot more often than one might think.

Just to back that up --- we've seen cases where people could repeatably
hit race-condition windows that are just an instruction or two wide.
The first one I came to in an idle archive search is
https://www.postgresql.org/message-id/15543.1130714273%40sss.pgh.pa.us
I vaguely recall others but don't feel like digging harder right now.

            regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: faster testing with symlink installs
Next
From: Tom Lane
Date:
Subject: Re: Server won't start with fallback setting by initdb.