You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
As noted by Noah Misch, btree_xlog_delete_get_latestRemovedXid iscritically dependent on the assumption that it's examining a consistentstate of the database. This was undocumented though, so theseemingly-unrelated check for no active HS sessions might be thought to bemerely an optional optimization. Improve comments, and add an explicitcheck of reachedConsistency just to be sure.This function returns InvalidTransactionId (thereby killing all HStransactions) in several cases that are not nearly unlikely enough for mytaste. This commit doesn't attempt to fix those deficiencies, justdocument them.Back-patch to 9.2, not from any real functional need but just to keep thebranches more closely synced to simplify possible future back-patching.