aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeIndexscan.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-01-12 22:01:38 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-01-12 22:01:38 +0000
commitd51260aa9d36653f4d63e6df133ddff8380f61b2 (patch)
treec40b798b75e91a45e3ec82d7cd4d01563fc525f5 /src/backend/executor/nodeIndexscan.c
parentb05204ac8a36ebe4f68823fdc47be2cde294621b (diff)
downloadpostgresql-d51260aa9d36653f4d63e6df133ddff8380f61b2.tar.gz
postgresql-d51260aa9d36653f4d63e6df133ddff8380f61b2.zip
Fix wrong/misleading comments, be more consistent about where to call
ExecAssignResultTypeFromTL().
Diffstat (limited to 'src/backend/executor/nodeIndexscan.c')
-rw-r--r--src/backend/executor/nodeIndexscan.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/backend/executor/nodeIndexscan.c b/src/backend/executor/nodeIndexscan.c
index a7cfce15b4c..ad8680d0ff4 100644
--- a/src/backend/executor/nodeIndexscan.c
+++ b/src/backend/executor/nodeIndexscan.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.76 2002/12/18 00:14:24 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.77 2003/01/12 22:01:38 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -583,9 +583,9 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
ExecInitScanTupleSlot(estate, &indexstate->ss);
/*
- * initialize projection info. result type comes from scan desc
- * below..
+ * Initialize result tuple type and projection info.
*/
+ ExecAssignResultTypeFromTL(&indexstate->ss.ps);
ExecAssignProjectionInfo(&indexstate->ss.ps);
/*
@@ -893,7 +893,6 @@ ExecInitIndexScan(IndexScan *node, EState *estate)
* get the scan type from the relation descriptor.
*/
ExecAssignScanType(&indexstate->ss, RelationGetDescr(currentRelation), false);
- ExecAssignResultTypeFromTL(&indexstate->ss.ps);
/*
* open the index relations and initialize relation and scan