summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-06-25 18:29:49 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-06-25 18:29:49 +0000
commit2924ca67475afa3cc3c1a814b170b61803caeee9 (patch)
treecdd0ec65d32b2fba2bc8ab1bf4db414befb44c62 /src/backend/access/gist/gistutil.c
parentf5940e7b345138d71d89547dd8e40af9f7532f83 (diff)
downloadpostgresql-2924ca67475afa3cc3c1a814b170b61803caeee9.tar.gz
Tweak dynahash.c to avoid wasting memory space in non-shared hash tables.
palloc() will normally round allocation requests up to the next power of 2, so make dynahash choose allocation sizes that are as close to a power of 2 as possible. Back-patch to 8.1 --- the problem exists further back, but a much larger patch would be needed and it doesn't seem worth taking any risks.
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions