summaryrefslogtreecommitdiff
path: root/src/include/storage/shmem.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-01-04 21:06:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-01-04 21:06:32 +0000
commit349f40b2c264cbbfe4c5c7ba783bce58483cefae (patch)
tree426223e3fff88cd5f3c5e30bbdc1ad5ed64e59d5 /src/include/storage/shmem.h
parente0078ea22ddb229e9050d17f8e3fa847f66f6768 (diff)
Rearrange backend startup sequence so that ShmemIndexLock can become
an LWLock instead of a spinlock. This hardly matters on Unix machines but should improve startup performance on Windows (or any port using EXEC_BACKEND). Per previous discussion.
Diffstat (limited to 'src/include/storage/shmem.h')
-rw-r--r--src/include/storage/shmem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/storage/shmem.h b/src/include/storage/shmem.h
index 520f8eb3adf..141ecf17d90 100644
--- a/src/include/storage/shmem.h
+++ b/src/include/storage/shmem.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/shmem.h,v 1.45 2005/08/20 23:26:35 tgl Exp $
+ * $PostgreSQL: pgsql/src/include/storage/shmem.h,v 1.46 2006/01/04 21:06:32 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -61,7 +61,8 @@ typedef struct SHM_QUEUE
} SHM_QUEUE;
/* shmem.c */
-extern void InitShmemAllocation(void *seghdr, bool init);
+extern void InitShmemAccess(void *seghdr);
+extern void InitShmemAllocation(void);
extern void *ShmemAlloc(Size size);
extern bool ShmemIsValid(unsigned long addr);
extern void InitShmemIndex(void);