Is cachedFetchXidStatus provably valid? - Mailing list pgsql-hackers

From Merlin Moncure
Subject Is cachedFetchXidStatus provably valid?
Date
Msg-id CAHyXU0xTrwnFU0MaZ1EsgRihD_f5V9FE2W=Bf2kfgxVpcnCK8Q@mail.gmail.com
Whole thread Raw
Responses Re: Is cachedFetchXidStatus provably valid?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
It's probably an academic concern, but what happens if a backend saves
off cachedFetchXidStatus and then sleeps for a very long time.  During
that time an xid wraparound happens and the backend wakes up and
happens to read another unhinted tuple with the same xid and a
different commit status.  This is obviously incredibly unlikely, but
shouldn't cachedFetchXid be cleared at some appropriate point --
perhaps end of transaction?

merlin


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: uncataloged tables are a vestigial husk
Next
From: Andres Freund
Date:
Subject: Re: [RFC][PATCH] Logical Replication/BDR prototype and architecture