Refactor crosstab() to build and return a tuplestore instead of using
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Dec 2008 01:30:18 +0000 (01:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 1 Dec 2008 01:30:18 +0000 (01:30 +0000)
commitcf407f164ea9246ba37866dda6e43f94d65e86f5
treec18b678abf907c426638d236123d405a5830aac1
parent76cc2fe6a1817874011aebe564e83c71ad8cfc2d
Refactor crosstab() to build and return a tuplestore instead of using
value-per-call mode.  This should be more efficient in normal usage,
but the real problem with the prior coding was that it returned with
a SPI call still active.  That could cause problems if execution was
interleaved with anything else that might use SPI.
contrib/tablefunc/tablefunc.c