aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2006-06-25 18:29:56 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2006-06-25 18:29:56 +0000
commit1f9acaf21d35796b962446a69d12f87e0e673668 (patch)
treee8221d7eed05f296d90cc0d6bf39dd66268dcd24 /src/backend/tcop/postgres.c
parent5ececcbbf567d6a140f32a2645c69a6c79500fd6 (diff)
downloadpostgresql-1f9acaf21d35796b962446a69d12f87e0e673668.tar.gz
postgresql-1f9acaf21d35796b962446a69d12f87e0e673668.zip
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/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions