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
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.
dynahash.c (r18.104.22.168 -> r22.214.171.124)
hsearch.h (r1.41 -> r126.96.36.199)
pgsql-committers by date
|Next:||From: Bruce Momjian||Date: 2006-06-25 18:52:03|
|Subject: pgsql: Update my info: > * Bruce is Bruce Momjian <firstname.lastname@example.org> of |
|Previous:||From: Tom Lane||Date: 2006-06-25 18:29:49|
|Subject: pgsql: Tweak dynahash.c to avoid wasting memory space in non-shared hash |