PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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 91 of file globals.c.

Referenced by asyncQueueReadAllNotifications(), asyncQueueUnregister(), AtEOXact_MultiXact(), AtPrepare_MultiXact(), AtProcExit_memstats_cleanup(), AuxiliaryProcKill(), BackgroundWriterMain(), buffer_readv_complete(), buffer_readv_complete_one(), buffer_readv_report(), CheckpointerMain(), CleanupInvalidationState(), ConditionVariableBroadcast(), ConditionVariableCancelSleep(), ConditionVariablePrepareToSleep(), ConditionVariableTimedSleep(), DebugPrintBufferRefcount(), DropRelationBuffers(), DropRelationsAllBuffers(), end_memorycontext_reporting(), Exec_ListenPreCommit(), FlushLocalBuffer(), free_memorycontextstate_dsa(), 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(), ProcessGetMemoryContextInterrupt(), 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 93 of file globals.c.

Referenced by ParallelWorkerMain(), and ParallelWorkerShutdown().