OSDN Git Service

Incorporate a couple of recent tuplesort.c improvements into tuplestore.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Mar 2006 19:30:12 +0000 (19:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 4 Mar 2006 19:30:12 +0000 (19:30 +0000)
commit2689abf07849d1ed69dfe57e3a999b1c6bb5e603
tree865d7ae21dadd2d2a1f674f749b19d6d7d22c21b
parent20bdc71369014f4cb1cf04fafbf99862cfbe2504
Incorporate a couple of recent tuplesort.c improvements into tuplestore.c.
In particular, ensure that enlargement of the memtuples[] array doesn't
fall foul of MaxAllocSize when work_mem is very large, and don't bother
enlarging it if that would force an immediate switch into 'tape' mode anyway.
src/backend/utils/sort/tuplestore.c