diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-01 05:36:17 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-10-01 05:36:17 +0000 |
| commit | 5999e78fc45dcb91784b64b6e9ae43f4e4f68ca2 (patch) | |
| tree | 85245856f8b67b940a4982b35e7369300b2f9a2a /src/include/storage/shmem.h | |
| parent | f58179669a94f3246d55d0ff31d7df85b4d46695 (diff) | |
Another round of cleanups for dynahash.c (maybe it's finally clean of
portability issues). Caller-visible data structures are now allocated
on MAXALIGN boundaries, allowing safe use of datatypes wider than 'long'.
Rejigger hash_create API so that caller specifies size of key and
total size of entry, not size of key and size of rest of entry.
This simplifies life considerably since each number is just a sizeof(),
and padding issues etc. are taken care of automatically.
Diffstat (limited to 'src/include/storage/shmem.h')
| -rw-r--r-- | src/include/storage/shmem.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/include/storage/shmem.h b/src/include/storage/shmem.h index 1043beb6348..a7ca140382d 100644 --- a/src/include/storage/shmem.h +++ b/src/include/storage/shmem.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: shmem.h,v 1.31 2001/09/29 04:02:27 tgl Exp $ + * $Id: shmem.h,v 1.32 2001/10/01 05:36:17 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -73,9 +73,7 @@ extern void *ShmemInitStruct(char *name, Size size, bool *foundPtr); /* size constants for the shmem index table */ /* max size of data structure string name */ -#define SHMEM_INDEX_KEYSIZE (50) - /* data in shmem index table hash bucket */ -#define SHMEM_INDEX_DATASIZE (sizeof(ShmemIndexEnt) - SHMEM_INDEX_KEYSIZE) +#define SHMEM_INDEX_KEYSIZE (48) /* maximum size of the shmem index table */ #define SHMEM_INDEX_SIZE (100) |
