OSDN Git Service

Another round of cleanups for dynahash.c (maybe it's finally clean of
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Oct 2001 05:36:17 +0000 (05:36 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Oct 2001 05:36:17 +0000 (05:36 +0000)
commit5999e78fc45dcb91784b64b6e9ae43f4e4f68ca2
tree85245856f8b67b940a4982b35e7369300b2f9a2a
parentf58179669a94f3246d55d0ff31d7df85b4d46695
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.
17 files changed:
src/backend/access/transam/xlogutils.c
src/backend/postmaster/pgstat.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/buffer/buf_table.c
src/backend/storage/freespace/freespace.c
src/backend/storage/ipc/shmem.c
src/backend/storage/lmgr/lock.c
src/backend/storage/smgr/mm.c
src/backend/utils/adt/ri_triggers.c
src/backend/utils/cache/relcache.c
src/backend/utils/hash/dynahash.c
src/backend/utils/hash/hashfn.c
src/backend/utils/mmgr/portalmem.c
src/include/storage/buf_internals.h
src/include/storage/lock.h
src/include/storage/shmem.h
src/include/utils/hsearch.h