pub struct LockWait {
pub blocked_pid: i32,
pub blocking_pid: i32,
pub blocked_query: Option<String>,
pub blocking_query: Option<String>,
pub relation: Option<String>,
pub lock_type: Option<String>,
pub mode: Option<String>,
pub wait_event: Option<String>,
}Expand description
pg_locks 中的一条阻塞关系。
Fields§
§blocked_pid: i32被阻塞的后端进程 ID。
blocking_pid: i32阻塞该请求的后端进程 ID。
blocked_query: Option<String>被阻塞会话最近执行的语句。
blocking_query: Option<String>阻塞会话最近执行的语句。
relation: Option<String>锁对象(表/索引等);事务级锁为 None。
lock_type: Option<String>锁类型(relation / tuple / transactionid 等)。
mode: Option<String>锁模式(AccessShareLock / AccessExclusiveLock 等)。
wait_event: Option<String>被阻塞会话的等待事件。
Trait Implementations§
Auto Trait Implementations§
impl Forget for LockWait
impl Freeze for LockWait
impl Move for LockWait
impl RefUnwindSafe for LockWait
impl Send for LockWait
impl Sync for LockWait
impl Unpin for LockWait
impl UnsafeUnpin for LockWait
impl UnwindSafe for LockWait
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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