]> granicus.if.org Git - postgresql/commit
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)
commitcc3e9deee615c57673896cd486bd74773d841b55
treefa72bfbc5fb07b3d3862e3c9ce756154d9662961
parent10f719af331b0248f532fb1eeee642f93ed981a9
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