Hi,

I have an issue about the following code:

        econtext = node->ps.ps_ExprContext;
        ResetExprContext(econtext);
 
+       if (ISCTAS(node->ps.intoclause))
+       {
+               ExecParallelInsertInCTAS(node);
+               return NULL;
+       }

        /* If no projection is required, we're done. */
        if (node->ps.ps_ProjInfo == NULL)
                return slot;

        /*
         * Form the result tuple using ExecProject(), and return it.
         */
        econtext->ecxt_outertuple = slot;
        return ExecProject(node->ps.ps_ProjInfo);

It seems the projection will be skipped.
Is this because projection is not required in this case ?
(I'm not very familiar with where the projection will be.)

If projection is not required here, shall we add some comments here?

Best regards,
houzj




Reply via email to