pub struct RowLockRetryCache { /* private fields */ }Implementations§
Source§impl RowLockRetryCache
impl RowLockRetryCache
pub fn new( budget_bytes: usize, row_locks: Arc<RowLockManager>, snapshot_baseline: RowChangeBaseline, ) -> Self
pub fn set_snapshot_baseline(&self, baseline: RowChangeBaseline)
Sourcepub fn conflicting_change_target_since_snapshot(
&self,
table: &str,
doc_id: DocId,
strength: LockStrength,
) -> Result<RowChangeTarget, SQLError>
pub fn conflicting_change_target_since_snapshot( &self, table: &str, doc_id: DocId, strength: LockStrength, ) -> Result<RowChangeTarget, SQLError>
Report whether another transaction committed a change to doc_id that conflicts with the requested lock strength after this statement’s snapshot, following primary-key rewrites to the final target identity. PostgreSQL 18 does not recheck a FOR KEY SHARE candidate after a compatible non-key update, so compatible mutation strengths return None here.
Sourcepub fn committed_override(
&self,
source: &dyn CommittedRowSource,
table: &str,
original_doc_id: DocId,
target_doc_id: DocId,
strength: LockStrength,
) -> Result<RetryRowOverride, SQLError>
pub fn committed_override( &self, source: &dyn CommittedRowSource, table: &str, original_doc_id: DocId, target_doc_id: DocId, strength: LockStrength, ) -> Result<RetryRowOverride, SQLError>
Fetch the latest committed image for a changed candidate row, memoized per (table, original doc id, lock strength) across duplicate occurrences in the statement. Different strengths cannot share an image because a non-key update may proceed after FOR KEY SHARE but conflict with a stronger later scope.
Auto Trait Implementations§
impl !Freeze for RowLockRetryCache
impl !RefUnwindSafe for RowLockRetryCache
impl !UnwindSafe for RowLockRetryCache
impl Send for RowLockRetryCache
impl Sync for RowLockRetryCache
impl Unpin for RowLockRetryCache
impl UnsafeUnpin for RowLockRetryCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more