The shortcut exit that I recently added to ExecInitIndexScan() for
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 31 May 2007 20:45:26 +0000 (20:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 31 May 2007 20:45:26 +0000 (20:45 +0000)
commitd07ac5e9d536d373e74d755a56fc88b19b8e970d
tree69f54c808d589f03c9432df3e31e780bb79fb557
parent7829333f0df9ca32197950fd1c07b11f7cba0955
The shortcut exit that I recently added to ExecInitIndexScan() for
EXPLAIN-only operation was a little too short; it skipped initializing the
node's result tuple type, which may be needed depending on what's above the
indexscan node.  Call ExecAssignResultTypeFromTL before exiting.  (For good
luck I moved up the ExecAssignScanProjectionInfo call as well, so that
everything except indexscan-specific initialization will still be done.)
Per example from Grant Finnemore.
src/backend/executor/nodeIndexscan.c