#include <proc.h>
Data Fields | |
SHM_QUEUE | links |
PGSemaphoreData | sem |
int | waitStatus |
Latch | procLatch |
LocalTransactionId | lxid |
int | pid |
int | pgprocno |
BackendId | backendId |
Oid | databaseId |
Oid | roleId |
bool | recoveryConflictPending |
bool | lwWaiting |
uint8 | lwWaitMode |
struct PGPROC * | lwWaitLink |
LOCK * | waitLock |
PROCLOCK * | waitProcLock |
LOCKMODE | waitLockMode |
LOCKMASK | heldLocks |
XLogRecPtr | waitLSN |
int | syncRepState |
SHM_QUEUE | syncRepLinks |
SHM_QUEUE | myProcLocks [NUM_LOCK_PARTITIONS] |
struct XidCache | subxids |
LWLockId | backendLock |
uint64 | fpLockBits |
Oid | fpRelId [FP_LOCK_SLOTS_PER_BACKEND] |
bool | fpVXIDLock |
LocalTransactionId | fpLocalTransactionId |
Definition at line 73 of file proc.h.
Definition at line 90 of file proc.h.
Referenced by GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), log_line_prefix(), MarkAsPreparing(), SharedInvalBackendInit(), StartTransaction(), VirtualXactLock(), VirtualXactLockTableCleanup(), VirtualXactLockTableInsert(), and write_csvlog().
Definition at line 134 of file proc.h.
Referenced by FastPathGetRelationLockEntry(), FastPathTransferRelationLocks(), GetLockConflicts(), GetLockStatusData(), InitProcGlobal(), LockAcquireExtended(), LockRelease(), LockReleaseAll(), VirtualXactLock(), VirtualXactLockTableCleanup(), and VirtualXactLockTableInsert().
Definition at line 91 of file proc.h.
Referenced by CancelDBBackends(), CountDBBackends(), CountOtherDBBackends(), FastPathTransferRelationLocks(), GetConflictingVirtualXIDs(), GetCurrentVirtualXIDs(), GetLockConflicts(), GetLockStatusData(), GetOldestXmin(), InitAuxiliaryProcess(), InitPostgres(), InitProcess(), LockGXact(), MarkAsPreparing(), pg_prepared_xact(), ProcArrayInstallImportedXmin(), and StartPrepare().
Definition at line 140 of file proc.h.
Referenced by GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), VirtualXactLock(), VirtualXactLockTableCleanup(), and VirtualXactLockTableInsert().
uint64 PGPROC::fpLockBits |
Oid PGPROC::fpRelId[FP_LOCK_SLOTS_PER_BACKEND] |
Definition at line 138 of file proc.h.
Referenced by FastPathGetRelationLockEntry(), FastPathGrantRelationLock(), FastPathTransferRelationLocks(), FastPathUnGrantRelationLock(), GetLockConflicts(), and GetLockStatusData().
Definition at line 139 of file proc.h.
Referenced by GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), VirtualXactLock(), VirtualXactLockTableCleanup(), and VirtualXactLockTableInsert().
Definition at line 111 of file proc.h.
Referenced by LockAcquireExtended(), and ProcSleep().
Definition at line 76 of file proc.h.
Referenced by CheckDeadLock(), DeadLockCheck(), FindLockCycleRecurse(), HaveNFreeProcs(), InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), LockErrorCleanup(), MarkAsPreparing(), ProcKill(), ProcLockWakeup(), ProcSleep(), ProcWakeup(), RemoveFromWaitQueue(), and TopoSort().
Definition at line 102 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockRelease(), and MarkAsPreparing().
struct PGPROC* PGPROC::lwWaitLink |
Definition at line 104 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockRelease(), and MarkAsPreparing().
Definition at line 103 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockRelease(), and MarkAsPreparing().
Definition at line 83 of file proc.h.
Referenced by AbortTransaction(), CommitTransaction(), exec_eval_simple_expr(), fmgr_sql(), GetLockStatusData(), GetStableLatestTransactionId(), init_sql_fcache(), InitAuxiliaryProcess(), InitProcess(), log_line_prefix(), MarkAsPreparing(), open_share_lock(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), StartTransaction(), and write_csvlog().
SHM_QUEUE PGPROC::myProcLocks[NUM_LOCK_PARTITIONS] |
Definition at line 129 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), lock_twophase_recover(), LockReleaseAll(), MarkAsPreparing(), PostPrepare_Locks(), ProcKill(), and SetupLockInTable().
int PGPROC::pgprocno |
Definition at line 87 of file proc.h.
Referenced by FindLockCycleRecurse(), GetRunningTransactionLocks(), InitAuxiliaryProcess(), InitProcess(), InitProcGlobal(), MarkAsPreparing(), ProcArrayAdd(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), ProcArrayRemove(), ProcSleep(), and TwoPhaseShmemInit().
int PGPROC::pid |
Definition at line 86 of file proc.h.
Referenced by autovac_balance_cost(), AuxiliaryProcKill(), BackendPidGetProc(), BackendXidGetPid(), CancelDBBackends(), CancelVirtualTransaction(), CountDBBackends(), CountOtherDBBackends(), CountUserBackends(), FindLockCycleRecurse(), GetConflictingVirtualXIDs(), GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparing(), MinimumActiveBackends(), ProcArrayRemove(), ProcSleep(), RememberSimpleDeadLock(), and TransactionIdIsActive().
Definition at line 81 of file proc.h.
Referenced by AutoVacLauncherMain(), AuxiliaryProcKill(), avl_sighup_handler(), avl_sigterm_handler(), avl_sigusr2_handler(), BackgroundWriterMain(), BgSigHupHandler(), CheckpointerMain(), ChkptSigHupHandler(), die(), handle_sig_alarm(), InitAuxiliaryProcess(), InitProcess(), ProcKill(), ReqCheckpointHandler(), ReqShutdownHandler(), SigHupHandler(), StatementCancelHandler(), SyncRepWaitForLSN(), SyncRepWakeQueue(), WalShutdownHandler(), WalSigHupHandler(), WalWriterMain(), worker_spi_main(), worker_spi_sighup(), and worker_spi_sigterm().
Definition at line 99 of file proc.h.
Referenced by CancelDBBackends(), CancelVirtualTransaction(), errdetail_abort(), InitProcess(), ProcArrayClearTransaction(), ProcArrayEndTransaction(), and RecoveryConflictInterrupt().
Definition at line 92 of file proc.h.
Referenced by CountUserBackends(), InitAuxiliaryProcess(), InitializeSessionUserId(), InitProcess(), MarkAsPreparing(), and pg_signal_backend().
PGSemaphoreData PGPROC::sem |
Definition at line 78 of file proc.h.
Referenced by CheckDeadLock(), InitAuxiliaryProcess(), InitProcess(), LWLockAcquire(), LWLockAcquireOrWait(), LWLockRelease(), ProcSendSignal(), ProcSleep(), ProcWaitForSignal(), and ProcWakeup().
struct XidCache PGPROC::subxids |
Definition at line 131 of file proc.h.
Referenced by GetNewTransactionId(), GetRunningTransactionData(), GetSnapshotData(), GXactLoadSubxactData(), TransactionIdIsInProgress(), and XidCacheRemoveRunningXids().
Definition at line 122 of file proc.h.
Referenced by InitProcess(), SyncRepCancelWait(), SyncRepCleanupAtProcExit(), SyncRepQueueInsert(), SyncRepWaitForLSN(), and SyncRepWakeQueue().
Definition at line 121 of file proc.h.
Referenced by InitProcess(), SyncRepCancelWait(), SyncRepWaitForLSN(), and SyncRepWakeQueue().
Definition at line 108 of file proc.h.
Referenced by CheckDeadLock(), ExpandConstraints(), FindLockCycleRecurse(), GetLockStatusData(), InitAuxiliaryProcess(), InitProcess(), MarkAsPreparing(), MinimumActiveBackends(), ProcSleep(), ProcWakeup(), RememberSimpleDeadLock(), RemoveFromWaitQueue(), and TopoSort().
Definition at line 110 of file proc.h.
Referenced by FindLockCycleRecurse(), GetLockStatusData(), ProcLockWakeup(), ProcSleep(), RememberSimpleDeadLock(), and RemoveFromWaitQueue().
Definition at line 120 of file proc.h.
Referenced by InitProcess(), SyncRepQueueInsert(), SyncRepWaitForLSN(), and SyncRepWakeQueue().
Definition at line 109 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), MarkAsPreparing(), ProcLockWakeup(), ProcSleep(), ProcWakeup(), and RemoveFromWaitQueue().
Definition at line 79 of file proc.h.
Referenced by InitAuxiliaryProcess(), InitProcess(), LockErrorCleanup(), MarkAsPreparing(), ProcSleep(), ProcWakeup(), and RemoveFromWaitQueue().