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.


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


typedef int ProcNumber


PGDLLIMPORT ProcNumber MyProcNumber
PGDLLIMPORT ProcNumber ParallelLeaderProcNumber

Macro Definition Documentation


#define INVALID_PROC_NUMBER   (-1)

Definition at line 26 of file procnumber.h.

◆ ProcNumberForTempRelations

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

Definition at line 40 of file procnumber.h.

Typedef Documentation

◆ ProcNumber

typedef int ProcNumber

Definition at line 24 of file procnumber.h.

Variable Documentation

◆ MyProcNumber

◆ ParallelLeaderProcNumber

PGDLLIMPORT ProcNumber ParallelLeaderProcNumber

Definition at line 89 of file globals.c.

Referenced by ParallelWorkerMain(), and ParallelWorkerShutdown().