~ubuntu-branches/ubuntu/natty/postgresql-8.4/natty-security

« back to all changes in this revision

Viewing changes to src/backend/executor/nodeWorktablescan.c

Tags: upstream-8.4.0
ImportĀ upstreamĀ versionĀ 8.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 *
9
9
 *
10
10
 * IDENTIFICATION
11
 
 *        $PostgreSQL: pgsql/src/backend/executor/nodeWorktablescan.c,v 1.6 2009/03/27 18:30:21 tgl Exp $
 
11
 *        $PostgreSQL: pgsql/src/backend/executor/nodeWorktablescan.c,v 1.7 2009/06/11 14:48:57 momjian Exp $
12
12
 *
13
13
 *-------------------------------------------------------------------------
14
14
 */
73
73
ExecWorkTableScan(WorkTableScanState *node)
74
74
{
75
75
        /*
76
 
         * On the first call, find the ancestor RecursiveUnion's state
77
 
         * via the Param slot reserved for it.  (We can't do this during node
78
 
         * init because there are corner cases where we'll get the init call
79
 
         * before the RecursiveUnion does.)
 
76
         * On the first call, find the ancestor RecursiveUnion's state via the
 
77
         * Param slot reserved for it.  (We can't do this during node init because
 
78
         * there are corner cases where we'll get the init call before the
 
79
         * RecursiveUnion does.)
80
80
         */
81
81
        if (node->rustate == NULL)
82
82
        {
100
100
                                                   ExecGetResultType(&node->rustate->ps));
101
101
 
102
102
                /*
103
 
                 * Now we can initialize the projection info.  This must be
104
 
                 * completed before we can call ExecScan().
 
103
                 * Now we can initialize the projection info.  This must be completed
 
104
                 * before we can call ExecScan().
105
105
                 */
106
106
                ExecAssignScanProjectionInfo(&node->ss);
107
107
        }