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.
Showing
This diff is collapsed.
Please register or sign in to comment