The shortcut exit that I recently added to ExecInitIndexScan() for

Tom Lane <tgl@sss.pgh.pa.us>

Commit: cc3e9deee615c57673896cd486bd74773d841b55
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-05-31T20:45:26Z
Releases: 8.3.0
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.

Files

PathChange+/−
src/backend/executor/nodeIndexscan.c modified +7 −7