PostgreSQL Source Code git master
|
#include <proc.h>
bool PGPROC::clogGroupMember |
Definition at line 282 of file proc.h.
Referenced by InitProcess(), and TransactionGroupUpdateXidStatus().
XLogRecPtr PGPROC::clogGroupMemberLsn |
Definition at line 289 of file proc.h.
Referenced by InitProcess(), and TransactionGroupUpdateXidStatus().
int64 PGPROC::clogGroupMemberPage |
Definition at line 287 of file proc.h.
Referenced by InitProcess(), and TransactionGroupUpdateXidStatus().
TransactionId PGPROC::clogGroupMemberXid |
Definition at line 284 of file proc.h.
Referenced by InitProcess(), and TransactionGroupUpdateXidStatus().
XidStatus PGPROC::clogGroupMemberXidStatus |
Definition at line 285 of file proc.h.
Referenced by InitProcess(), and TransactionGroupUpdateXidStatus().
pg_atomic_uint32 PGPROC::clogGroupNext |
Definition at line 283 of file proc.h.
Referenced by InitProcess(), InitProcGlobal(), and TransactionGroupUpdateXidStatus().
proclist_node PGPROC::cvWaitLink |
Oid PGPROC::databaseId |
Definition at line 207 of file proc.h.
Referenced by CancelDBBackends(), checkTempNamespaceStatus(), ComputeXidHorizons(), CountDBBackends(), CountDBConnections(), CountOtherDBBackends(), FastPathTransferRelationLocks(), GetConflictingVirtualXIDs(), GetCurrentVirtualXIDs(), GetLockConflicts(), GetLockStatusData(), GetRunningTransactionData(), InitAuxiliaryProcess(), InitPostgres(), InitProcess(), LockGXact(), MarkAsPreparingGuts(), pg_prepared_xact(), ProcArrayInstallImportedXmin(), ProcArrayInstallRestoredXmin(), StartPrepare(), and TerminateOtherDBBackends().
int PGPROC::delayChkptFlags |
Definition at line 240 of file proc.h.
Referenced by EndPrepare(), GetVirtualXIDsDelayingChkpt(), HaveVirtualXIDsDelayingChkpt(), heap_inplace_update_and_unlock(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparingGuts(), MarkBufferDirtyHint(), pg_truncate_visibility_map(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), RecordTransactionCommit(), RecordTransactionCommitPrepared(), RelationTruncate(), smgr_bulk_finish(), TruncateMultiXact(), and XLogSaveBufferForHint().
LWLock PGPROC::fpInfoLock |
Definition at line 293 of file proc.h.
Referenced by FastPathGetRelationLockEntry(), FastPathTransferRelationLocks(), GetLockConflicts(), GetLockStatusData(), InitProcGlobal(), LockAcquireExtended(), LockRelease(), LockReleaseAll(), VirtualXactLock(), VirtualXactLockTableCleanup(), and VirtualXactLockTableInsert().
LocalTransactionId PGPROC::fpLocalTransactionId |
Definition at line 297 of file proc.h.
Referenced by GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), VirtualXactLock(), VirtualXactLockTableCleanup(), and VirtualXactLockTableInsert().
uint64* PGPROC::fpLockBits |
Definition at line 294 of file proc.h.
Referenced by GetLockStatusData(), and InitProcGlobal().
Oid* PGPROC::fpRelId |
Definition at line 295 of file proc.h.
Referenced by FastPathGetRelationLockEntry(), FastPathGrantRelationLock(), FastPathTransferRelationLocks(), FastPathUnGrantRelationLock(), GetLockConflicts(), GetLockStatusData(), and InitProcGlobal().
bool PGPROC::fpVXIDLock |
Definition at line 296 of file proc.h.
Referenced by GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), VirtualXactLock(), VirtualXactLockTableCleanup(), and VirtualXactLockTableInsert().
LOCKMASK PGPROC::heldLocks |
Definition at line 235 of file proc.h.
Referenced by JoinWaitQueue().
bool PGPROC::isRegularBackend |
Definition at line 213 of file proc.h.
Referenced by CountDBConnections(), CountUserBackends(), InitAuxiliaryProcess(), InitProcess(), and MarkAsPreparingGuts().
dlist_node PGPROC::links |
Definition at line 163 of file proc.h.
Referenced by CheckDeadLock(), FindLockCycleRecurse(), GetSingleProcBlockerStatusData(), InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), JoinWaitQueue(), LockErrorCleanup(), MarkAsPreparingGuts(), ProcKill(), ProcWakeup(), and RemoveFromWaitQueue().
PGPROC* PGPROC::lockGroupLeader |
Definition at line 304 of file proc.h.
Referenced by BecomeLockGroupLeader(), BecomeLockGroupMember(), FindLockCycleRecurse(), FindLockCycleRecurseMember(), GetBlockerStatusData(), InitAuxiliaryProcess(), InitProcess(), JoinWaitQueue(), lock_twophase_recover(), LockCheckConflicts(), log_status_format(), pg_stat_get_activity(), PostPrepare_Locks(), ProcKill(), SetupLockInTable(), TopoSort(), write_csvlog(), and write_jsonlog().
dlist_node PGPROC::lockGroupLink |
Definition at line 306 of file proc.h.
Referenced by BecomeLockGroupLeader(), BecomeLockGroupMember(), and ProcKill().
dlist_head PGPROC::lockGroupMembers |
Definition at line 305 of file proc.h.
Referenced by BecomeLockGroupLeader(), BecomeLockGroupMember(), FindLockCycleRecurse(), GetBlockerStatusData(), InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), and ProcKill().
uint8 PGPROC::lwWaiting |
Definition at line 223 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockDequeueSelf(), LWLockQueueSelf(), LWLockUpdateVar(), LWLockWaitForVar(), LWLockWakeup(), and MarkAsPreparingGuts().
proclist_node PGPROC::lwWaitLink |
uint8 PGPROC::lwWaitMode |
Definition at line 224 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), LWLockQueueSelf(), LWLockUpdateVar(), LWLockWakeup(), and MarkAsPreparingGuts().
LocalTransactionId PGPROC::lxid |
Definition at line 200 of file proc.h.
Referenced by AbortTransaction(), AuxiliaryProcKill(), CommitTransaction(), exec_eval_simple_expr(), exec_simple_check_plan(), exec_stmt_call(), ExportSnapshot(), fmgr_sql(), get_cast_hashentry(), GetLockStatusData(), GetSingleProcBlockerStatusData(), GetStableLatestTransactionId(), init_sql_fcache(), InitAuxiliaryProcess(), InitProcess(), lock_and_open_sequence(), log_status_format(), MarkAsPreparingGuts(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcArrayInstallImportedXmin(), ProcKill(), StartTransaction(), write_csvlog(), and write_jsonlog().
dlist_head PGPROC::myProcLocks[NUM_LOCK_PARTITIONS] |
Definition at line 261 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), lock_twophase_recover(), LockReleaseAll(), MarkAsPreparingGuts(), PostPrepare_Locks(), ProcKill(), and SetupLockInTable().
int PGPROC::pgxactoff |
Definition at line 184 of file proc.h.
Referenced by GetNewTransactionId(), GetSnapshotData(), ProcArrayAdd(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcArrayInstallRestoredXmin(), ProcArrayRemove(), ProcSleep(), ReplicationSlotRelease(), set_indexsafe_procflags(), StartupDecodingContext(), TransactionIdIsInProgress(), vacuum_rel(), and XidCacheRemoveRunningXids().
int PGPROC::pid |
Definition at line 182 of file proc.h.
Referenced by AuxiliaryPidGetProc(), AuxiliaryProcKill(), BackendPidGetProcWithLock(), BackendXidGetPid(), BecomeLockGroupMember(), CancelDBBackends(), CountDBBackends(), CountDBConnections(), CountOtherDBBackends(), CountUserBackends(), FindLockCycleRecurseMember(), GetConflictingVirtualXIDs(), GetLeaderApplyWorkerPid(), GetLockStatusData(), GetSingleProcBlockerStatusData(), InitAuxiliaryProcess(), InitProcess(), log_status_format(), logicalrep_worker_stop_internal(), LogRecoveryConflict(), MarkAsPreparingGuts(), MinimumActiveBackends(), pg_stat_get_activity(), pg_stat_get_subscription(), ProcArrayRemove(), ProcKill(), ProcNumberGetProc(), ProcNumberGetTransactionIds(), ProcSleep(), RememberSimpleDeadLock(), SignalVirtualTransaction(), TerminateOtherDBBackends(), TransactionIdIsActive(), WaitForLockersMultiple(), WaitForOlderSnapshots(), write_csvlog(), and write_jsonlog().
bool PGPROC::procArrayGroupMember |
Definition at line 269 of file proc.h.
Referenced by InitProcess(), and ProcArrayGroupClearXid().
TransactionId PGPROC::procArrayGroupMemberXid |
Definition at line 277 of file proc.h.
Referenced by InitProcess(), and ProcArrayGroupClearXid().
pg_atomic_uint32 PGPROC::procArrayGroupNext |
Definition at line 271 of file proc.h.
Referenced by InitProcess(), InitProcGlobal(), and ProcArrayGroupClearXid().
dlist_head* PGPROC::procgloballist |
Definition at line 164 of file proc.h.
Referenced by InitProcess(), InitProcGlobal(), and ProcKill().
Latch PGPROC::procLatch |
Definition at line 169 of file proc.h.
Referenced by AuxiliaryProcKill(), ConditionVariableBroadcast(), ConditionVariableSignal(), InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), logicalrep_worker_wakeup_ptr(), PgArchWakeup(), ProcKill(), ProcSendSignal(), ProcWakeup(), shm_mq_detach_internal(), shm_mq_inc_bytes_read(), shm_mq_send_bytes(), shm_mq_sendv(), shm_mq_set_receiver(), shm_mq_set_sender(), StrategyGetBuffer(), SwitchBackToLocalLatch(), SwitchToSharedLatch(), SyncRepWakeQueue(), test_shm_mq_main(), and WakeupWalSummarizer().
ProcNumber PGPROC::procNumber |
Definition at line 195 of file proc.h.
Referenced by AuxiliaryProcKill(), ExportSnapshot(), GetLockStatusData(), GetSingleProcBlockerStatusData(), InitAuxiliaryProcess(), InitProcess(), InitRecoveryTransactionEnvironment(), log_status_format(), MarkAsPreparingGuts(), ProcArrayInstallImportedXmin(), ProcKill(), StartTransaction(), VirtualXactLock(), VirtualXactLockTableCleanup(), VirtualXactLockTableInsert(), write_csvlog(), and write_jsonlog().
bool PGPROC::recoveryConflictPending |
Definition at line 220 of file proc.h.
Referenced by CancelDBBackends(), errdetail_abort(), InitProcess(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcessRecoveryConflictInterrupt(), and SignalVirtualTransaction().
Oid PGPROC::roleId |
Definition at line 208 of file proc.h.
Referenced by CountUserBackends(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparingGuts(), pg_signal_backend(), SetAuthenticatedUserId(), and TerminateOtherDBBackends().
PGSemaphore PGPROC::sem |
Definition at line 166 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockDequeueSelf(), LWLockUpdateVar(), LWLockWaitForVar(), LWLockWakeup(), ProcArrayGroupClearXid(), and TransactionGroupUpdateXidStatus().
uint8 PGPROC::statusFlags |
Definition at line 242 of file proc.h.
Referenced by _brin_parallel_build_main(), _bt_parallel_build_main(), FindLockCycleRecurseMember(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparingGuts(), parallel_vacuum_main(), ProcArrayAdd(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcArrayInstallRestoredXmin(), ReplicationSlotRelease(), set_indexsafe_procflags(), StartupDecodingContext(), and vacuum_rel().
struct XidCache PGPROC::subxids |
Definition at line 265 of file proc.h.
Referenced by GetNewTransactionId(), GetRunningTransactionData(), GetSnapshotData(), GXactLoadSubxactData(), TransactionGroupUpdateXidStatus(), TransactionIdIsInProgress(), TransactionIdSetPageStatus(), and XidCacheRemoveRunningXids().
XidCacheStatus PGPROC::subxidStatus |
Definition at line 263 of file proc.h.
Referenced by consume_xids_common(), GetNewTransactionId(), GXactLoadSubxactData(), MarkAsPreparingGuts(), ProcArrayAdd(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcNumberGetTransactionIds(), TransactionGroupUpdateXidStatus(), TransactionIdSetPageStatus(), and XidCacheRemoveRunningXids().
dlist_node PGPROC::syncRepLinks |
Definition at line 254 of file proc.h.
Referenced by InitProcess(), SyncRepCancelWait(), SyncRepCleanupAtProcExit(), SyncRepQueueInsert(), SyncRepWaitForLSN(), and SyncRepWakeQueue().
int PGPROC::syncRepState |
Definition at line 253 of file proc.h.
Referenced by InitProcess(), SyncRepCancelWait(), SyncRepWaitForLSN(), and SyncRepWakeQueue().
Oid PGPROC::tempNamespaceId |
Definition at line 210 of file proc.h.
Referenced by AtEOSubXact_Namespace(), AtEOXact_Namespace(), checkTempNamespaceStatus(), InitAuxiliaryProcess(), InitProcess(), InitTempTableNamespace(), and MarkAsPreparingGuts().
struct { ... } PGPROC::vxid |
Referenced by AbortTransaction(), AuxiliaryProcKill(), CommitTransaction(), exec_eval_simple_expr(), exec_simple_check_plan(), exec_stmt_call(), ExportSnapshot(), fmgr_sql(), get_cast_hashentry(), GetLockStatusData(), GetSingleProcBlockerStatusData(), GetStableLatestTransactionId(), init_sql_fcache(), InitAuxiliaryProcess(), InitProcess(), InitRecoveryTransactionEnvironment(), lock_and_open_sequence(), log_status_format(), MarkAsPreparingGuts(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcArrayInstallImportedXmin(), ProcKill(), StartTransaction(), VirtualXactLock(), VirtualXactLockTableCleanup(), VirtualXactLockTableInsert(), write_csvlog(), and write_jsonlog().
uint32 PGPROC::wait_event_info |
Definition at line 279 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), pg_isolation_test_session_is_blocked(), pg_stat_get_activity(), pg_stat_get_backend_wait_event(), pg_stat_get_backend_wait_event_type(), and pgstat_report_activity().
LOCK* PGPROC::waitLock |
Definition at line 232 of file proc.h.
Referenced by CheckDeadLock(), FindLockCycleRecurse(), FindLockCycleRecurseMember(), GetLockStatusData(), GetSingleProcBlockerStatusData(), InitAuxiliaryProcess(), InitProcess(), JoinWaitQueue(), MarkAsPreparingGuts(), MinimumActiveBackends(), ProcWakeup(), RememberSimpleDeadLock(), RemoveFromWaitQueue(), and TopoSort().
LOCKMODE PGPROC::waitLockMode |
Definition at line 234 of file proc.h.
Referenced by FindLockCycleRecurseMember(), GetLockStatusData(), GetSingleProcBlockerStatusData(), JoinWaitQueue(), ProcLockWakeup(), RememberSimpleDeadLock(), and RemoveFromWaitQueue().
XLogRecPtr PGPROC::waitLSN |
Definition at line 252 of file proc.h.
Referenced by InitProcess(), SyncRepQueueInsert(), SyncRepWaitForLSN(), and SyncRepWakeQueue().
PROCLOCK* PGPROC::waitProcLock |
Definition at line 233 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), JoinWaitQueue(), MarkAsPreparingGuts(), ProcLockWakeup(), ProcSleep(), ProcWakeup(), and RemoveFromWaitQueue().
pg_atomic_uint64 PGPROC::waitStart |
Definition at line 237 of file proc.h.
Referenced by GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), MarkAsPreparingGuts(), ProcSleep(), ProcWakeup(), and ResolveRecoveryConflictWithLock().
ProcWaitStatus PGPROC::waitStatus |
Definition at line 167 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), JoinWaitQueue(), LockErrorCleanup(), MarkAsPreparingGuts(), ProcSleep(), ProcWakeup(), and RemoveFromWaitQueue().
TransactionId PGPROC::xid |
Definition at line 172 of file proc.h.
Referenced by ComputeXidHorizons(), GetNewTransactionId(), GetRunningTransactionLocks(), GetSnapshotData(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparingGuts(), MinimumActiveBackends(), pg_prepared_xact(), ProcArrayAdd(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcArrayGroupClearXid(), ProcNumberGetTransactionIds(), set_indexsafe_procflags(), TransactionIdSetPageStatus(), and VirtualXactLock().
TransactionId PGPROC::xmin |
Definition at line 177 of file proc.h.
Referenced by AtEOXact_Snapshot(), ComputeXidHorizons(), DefineIndex(), GetConflictingVirtualXIDs(), GetCurrentVirtualXIDs(), GetSnapshotData(), GetSnapshotDataReuse(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparingGuts(), PhysicalReplicationSlotNewXmin(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayEndTransactionInternal(), ProcArrayInstallImportedXmin(), ProcArrayInstallRestoredXmin(), ProcessStandbyHSFeedbackMessage(), ProcNumberGetTransactionIds(), set_indexsafe_procflags(), SnapBuildInitialSnapshot(), and SnapshotResetXmin().