git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9ef86cd) | patch
Permit super-MaxAllocSize allocations with MemoryContextAllocHuge().
2013年6月27日 18:53:57 +0000 (14:53 -0400)
2013年6月27日 18:53:57 +0000 (14:53 -0400)
commit 263865a48973767ce8ed7b7788059a38a24a9f37
Permit super-MaxAllocSize allocations with MemoryContextAllocHuge().

The MaxAllocSize guard is convenient for most callers, because it
reduces the need for careful attention to overflow, data type selection,
and the SET_VARSIZE() limit. A handful of callers are happy to navigate
those hazards in exchange for the ability to allocate a larger chunk.
Introduce MemoryContextAllocHuge() and repalloc_huge(). Use this in
tuplesort.c and tuplestore.c, enabling internal sorts of up to INT_MAX
tuples, a factor-of-48 increase. In particular, B-tree index builds can
now benefit from much-larger maintenance_work_mem settings.

Reviewed by Stephen Frost, Simon Riggs and Jeff Janes.
src/backend/utils/mmgr/aset.c diff | blob | blame | history
src/backend/utils/mmgr/mcxt.c diff | blob | blame | history
src/backend/utils/sort/tuplesort.c diff | blob | blame | history
src/backend/utils/sort/tuplestore.c diff | blob | blame | history
src/include/utils/memutils.h diff | blob | blame | history
src/include/utils/palloc.h diff | blob | blame | history
src/include/utils/tuplesort.h diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /