Struct pgx_pg_sys::PGPROC

source ·
#[repr(C)]
pub struct PGPROC {
Show 53 fields pub links: SHM_QUEUE, pub procgloballist: *mut *mut PGPROC, pub sem: PGSemaphore, pub waitStatus: ProcWaitStatus, pub procLatch: Latch, pub xid: TransactionId, pub xmin: TransactionId, pub lxid: LocalTransactionId, pub pid: c_int, pub pgxactoff: c_int, pub pgprocno: c_int, pub backendId: BackendId, pub databaseId: Oid, pub roleId: Oid, pub tempNamespaceId: Oid, pub isBackgroundWorker: bool, pub recoveryConflictPending: bool, pub lwWaiting: bool, pub lwWaitMode: uint8, pub lwWaitLink: proclist_node, pub cvWaitLink: proclist_node, pub waitLock: *mut LOCK, pub waitProcLock: *mut PROCLOCK, pub waitLockMode: LOCKMODE, pub heldLocks: LOCKMASK, pub waitStart: pg_atomic_uint64, pub delayChkpt: bool, pub statusFlags: uint8, pub delayChkptEnd: bool, pub waitLSN: XLogRecPtr, pub syncRepState: c_int, pub syncRepLinks: SHM_QUEUE, pub myProcLocks: [SHM_QUEUE; 16], pub subxidStatus: XidCacheStatus, pub subxids: XidCache, pub procArrayGroupMember: bool, pub procArrayGroupNext: pg_atomic_uint32, pub procArrayGroupMemberXid: TransactionId, pub wait_event_info: uint32, pub clogGroupMember: bool, pub clogGroupNext: pg_atomic_uint32, pub clogGroupMemberXid: TransactionId, pub clogGroupMemberXidStatus: XidStatus, pub clogGroupMemberPage: c_int, pub clogGroupMemberLsn: XLogRecPtr, pub fpInfoLock: LWLock, pub fpLockBits: uint64, pub fpRelId: [Oid; 16], pub fpVXIDLock: bool, pub fpLocalTransactionId: LocalTransactionId, pub lockGroupLeader: *mut PGPROC, pub lockGroupMembers: dlist_head, pub lockGroupLink: dlist_node,
}

Fields§

§links: SHM_QUEUE§procgloballist: *mut *mut PGPROC§sem: PGSemaphore§waitStatus: ProcWaitStatus§procLatch: Latch§xid: TransactionId§xmin: TransactionId§lxid: LocalTransactionId§pid: c_int§pgxactoff: c_int§pgprocno: c_int§backendId: BackendId§databaseId: Oid§roleId: Oid§tempNamespaceId: Oid§isBackgroundWorker: bool§recoveryConflictPending: bool§lwWaiting: bool§lwWaitMode: uint8§lwWaitLink: proclist_node§cvWaitLink: proclist_node§waitLock: *mut LOCK§waitProcLock: *mut PROCLOCK§waitLockMode: LOCKMODE§heldLocks: LOCKMASK§waitStart: pg_atomic_uint64§delayChkpt: bool§statusFlags: uint8§delayChkptEnd: bool§waitLSN: XLogRecPtr§syncRepState: c_int§syncRepLinks: SHM_QUEUE§myProcLocks: [SHM_QUEUE; 16]§subxidStatus: XidCacheStatus§subxids: XidCache§procArrayGroupMember: bool§procArrayGroupNext: pg_atomic_uint32§procArrayGroupMemberXid: TransactionId§wait_event_info: uint32§clogGroupMember: bool§clogGroupNext: pg_atomic_uint32§clogGroupMemberXid: TransactionId§clogGroupMemberXidStatus: XidStatus§clogGroupMemberPage: c_int§clogGroupMemberLsn: XLogRecPtr§fpInfoLock: LWLock§fpLockBits: uint64§fpRelId: [Oid; 16]§fpVXIDLock: bool§fpLocalTransactionId: LocalTransactionId§lockGroupLeader: *mut PGPROC§lockGroupMembers: dlist_head§lockGroupLink: dlist_node

Trait Implementations§

source§

impl Clone for PGPROC

source§

fn clone(&self) -> PGPROC

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PGPROC

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for PGPROC

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Copy for PGPROC

Auto Trait Implementations§

§

impl RefUnwindSafe for PGPROC

§

impl !Send for PGPROC

§

impl !Sync for PGPROC

§

impl Unpin for PGPROC

§

impl UnwindSafe for PGPROC

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.