Tweak dynahash.c to not allocate so many entries at once when dealing
Tom Lane <tgl@sss.pgh.pa.us>
Tweak dynahash.c to not allocate so many entries at once when dealing with a table that has a small predicted size. Avoids wasting several hundred K on the timezone hash table, which is likely to have only one or a few entries, but the entries use up 10Kb apiece ...
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/hash/dynahash.c | modified | +16 −8 |
| src/include/utils/hsearch.h | modified | +4 −3 |
| src/timezone/pgtz.c | modified | +2 −2 |