PostgreSQL Source Code git master
procnumber.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define INVALID_PROC_NUMBER   (-1)
 
#define MAX_BACKENDS_BITS   18
 
#define MAX_BACKENDS   ((1U << MAX_BACKENDS_BITS)-1)
 
#define ProcNumberForTempRelations()    (ParallelLeaderProcNumber == INVALID_PROC_NUMBER ? MyProcNumber : ParallelLeaderProcNumber)
 

Typedefs

typedef int ProcNumber
 

Variables

PGDLLIMPORT ProcNumber MyProcNumber
 
PGDLLIMPORT ProcNumber ParallelLeaderProcNumber
 

Macro Definition Documentation

◆ INVALID_PROC_NUMBER

#define INVALID_PROC_NUMBER   (-1)

Definition at line 26 of file procnumber.h.

◆ MAX_BACKENDS

#define MAX_BACKENDS   ((1U << MAX_BACKENDS_BITS)-1)

Definition at line 39 of file procnumber.h.

◆ MAX_BACKENDS_BITS

#define MAX_BACKENDS_BITS   18

Definition at line 38 of file procnumber.h.

◆ ProcNumberForTempRelations

#define ProcNumberForTempRelations ( )     (ParallelLeaderProcNumber == INVALID_PROC_NUMBER ? MyProcNumber : ParallelLeaderProcNumber)

Definition at line 53 of file procnumber.h.

Typedef Documentation

◆ ProcNumber

typedef int ProcNumber

Definition at line 24 of file procnumber.h.

Variable Documentation

◆ MyProcNumber

PGDLLIMPORT ProcNumber MyProcNumber
extern

Definition at line 90 of file globals.c.

Referenced by asyncQueueReadAllNotifications(), asyncQueueUnregister(), AtEOXact_MultiXact(), AtPrepare_MultiXact(), AuxiliaryProcKill(), BackgroundWriterMain(), buffer_readv_complete(), buffer_readv_complete_one(), buffer_readv_report(), CheckpointerMain(), CleanupInvalidationState(), ConditionVariableBroadcast(), ConditionVariableCancelSleep(), ConditionVariablePrepareToSleep(), ConditionVariableTimedSleep(), DebugPrintBufferRefcount(), DropRelationBuffers(), DropRelationsAllBuffers(), Exec_ListenPreCommit(), FlushLocalBuffer(), GetMultiXactIdMembers(), GetSerializableTransactionSnapshotInt(), InitAuxiliaryProcess(), InitializeParallelDSM(), InitProcess(), InitRecoveryTransactionEnvironment(), InitTempTableNamespace(), InvalidateLocalBuffer(), local_buffer_write_error_callback(), LockBufferForCleanup(), LockGXact(), LWLockDequeueSelf(), LWLockQueueSelf(), MarkAsPreparingGuts(), md_readv_report(), MultiXactIdCreate(), MultiXactIdExpand(), MultiXactIdSetOldestMember(), MultiXactIdSetOldestVisible(), pgaio_init_backend(), pgaio_io_acquire_nb(), pgaio_io_process_completion(), pgaio_io_reclaim(), pgaio_io_wait(), pgaio_worker_error_callback(), pgaio_wref_check_done(), PgArchiverMain(), pgstat_beinit(), pgstat_bestart_final(), pgstat_create_backend(), pgstat_flush_backend(), pgstat_shutdown_hook(), PostPrepare_MultiXact(), ProcKill(), ProcSignalInit(), SharedInvalBackendInit(), SIGetDataEntries(), smgr_aio_describe_identity(), StartTransaction(), TransactionGroupUpdateXidStatus(), UnlockBuffers(), VirtualXactLockTableCleanup(), WALInsertLockAcquire(), WalReceiverMain(), WalSummarizerMain(), and WalWriterMain().

◆ ParallelLeaderProcNumber

PGDLLIMPORT ProcNumber ParallelLeaderProcNumber
extern

Definition at line 92 of file globals.c.

Referenced by ParallelWorkerMain(), and ParallelWorkerShutdown().