Content-Length: 234933 | pFad | http://github.com/postgrespro/postgres_cluster/commit/0011c0091e886b874e485a46ff2c94222ffbf550

0E Improve memory management for external sorts. · postgrespro/postgres_cluster@0011c00 · GitHub
Skip to content

Commit 0011c00

Browse files
committed
Improve memory management for external sorts.
Introduce a new memory context which stores tuple data, and reset it at the end of each merge pass; this helps avoid memory fragmentation and, consequently, overallocation. Also, for the final merge patch, eliminate memory context chunk header overhead entirely by allocating all of the memory used for buffering tuples during the merge in a single chunk. Since this modestly increases the number of tuples we can store, grow the memtuples array a bit so that we're less likely to run short of slots there. Peter Geoghegan. Review and testing of patches in this series by Jeff Janes, Greg Stark, Mithun Cy, and me.
1 parent 55c3a04 commit 0011c00

File tree

1 file changed

+516
-40
lines changed

1 file changed

+516
-40
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/0011c0091e886b874e485a46ff2c94222ffbf550

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy