Use repalloc_huge() to enlarge a SPITupleTable's tuple pointer array.
commit74a379b984d4df91acec2436a16c51caee3526af
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 18:22:16 +0000 (14 14:22 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 14 Mar 2016 18:22:34 +0000 (14 14:22 -0400)
tree5f6ae215a549907425438231fe44f28523c1a481
parent3adf9ced17dfa84faa209127b4499e5a5b995806
Use repalloc_huge() to enlarge a SPITupleTable's tuple pointer array.

Commit 23a27b039d94ba35 widened the rows-stored counters to uint64, but
that's academic unless we allow the tuple pointer array to exceed 1GB.

(It might be a good idea to provide some other limit on how much storage
a SPITupleTable can eat.  On the other hand, there are plenty of other
ways to drive a backend into swap hell.)

Dagfinn Ilmari MannsÃ¥ker
src/backend/executor/spi.c