diff options
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index 2cfee41eff9..abf99668f34 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.85 2005/12/11 21:02:18 tgl Exp $ + * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.86 2006/01/04 21:06:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -114,9 +114,10 @@ typedef struct PROC_HDR int spins_per_delay; } PROC_HDR; - -#define DUMMY_PROC_DEFAULT 0 -#define DUMMY_PROC_BGWRITER 1 +/* + * We set aside some extra PGPROC structures for "dummy" processes, + * ie things that aren't full-fledged backends but need shmem access. + */ #define NUM_DUMMY_PROCS 2 @@ -134,7 +135,8 @@ extern int ProcGlobalSemas(void); extern Size ProcGlobalShmemSize(void); extern void InitProcGlobal(void); extern void InitProcess(void); -extern void InitDummyProcess(int proctype); +extern void InitProcessPhase2(void); +extern void InitDummyProcess(void); extern bool HaveNFreeProcs(int n); extern void ProcReleaseLocks(bool isCommit); |