diff options
| author | Tom Lane | 2001-10-01 05:36:17 +0000 |
|---|---|---|
| committer | Tom Lane | 2001-10-01 05:36:17 +0000 |
| commit | 5999e78fc45dcb91784b64b6e9ae43f4e4f68ca2 (patch) | |
| tree | 85245856f8b67b940a4982b35e7369300b2f9a2a /src/backend/utils/mmgr | |
| 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/backend/utils/mmgr')
| -rw-r--r-- | src/backend/utils/mmgr/portalmem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/mmgr/portalmem.c b/src/backend/utils/mmgr/portalmem.c index a5534dc1cde..7e1aac19363 100644 --- a/src/backend/utils/mmgr/portalmem.c +++ b/src/backend/utils/mmgr/portalmem.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.41 2001/03/22 04:00:08 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/mmgr/portalmem.c,v 1.42 2001/10/01 05:36:16 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -123,7 +123,7 @@ EnablePortalManager(void) ALLOCSET_DEFAULT_MAXSIZE); ctl.keysize = MAX_PORTALNAME_LEN; - ctl.datasize = sizeof(Portal); + ctl.entrysize = sizeof(PortalHashEnt); /* * use PORTALS_PER_USER, defined in utils/portal.h as a guess of how |
