Modify aset.c to track the next intended block allocation size explicitly.
The former coding relied on the actual allocated size of the last block,
which made it behave strangely if the first allocation in a context was
larger than ALLOC_CHUNK_LIMIT: subsequent allocations would be referenced
to that and not to the intended series of block sizes. Noted while
studying a memory wastage gripe from Tatsuo.
aset.c (r1.68 -> r1.69)
pgsql-committers by date
|Next:||From: Tom Lane||Date: 2006-11-08 20:12:05|
|Subject: pgsql: Change Windows rename and unlink substitutes so that they time |
|Previous:||From: Tom Lane||Date: 2006-11-08 19:24:38|
|Subject: pgsql: Tweak accumArrayResult() to double the size of its working arrays |