... ExecProcNode(node) { switch (nodeType(node)) { case SeqScan: result = ExecSeqScan(node); break; case NestLoop: result = ExecNestLoop(node); break; ... } return result; }