Skip to content
Snippets Groups Projects
Commit 2924ca67 authored by Tom Lane's avatar Tom Lane
Browse files

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.
parent f5940e7b
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment