Refactor crosstab() to build and return a tuplestore instead of using
authorTom Lane <[email protected]>
Mon, 1 Dec 2008 01:30:18 +0000 (01:30 +0000)
committerTom Lane <[email protected]>
Mon, 1 Dec 2008 01:30:18 +0000 (01:30 +0000)
commit44d9bc43a426e3c2541a9a44559ce5438ad8a665
tree5519749f7b9de4dba4c08846b0521af77772e31f
parentdd7d695008228b2f7663c5aaba0b582e4bcb4e96
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