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 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.

◆ 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
extern

Definition at line 91 of file globals.c.

Referenced by ParallelWorkerMain(), and ParallelWorkerShutdown().