This is probably a leftover from code refactoring.
Japin Li
Discussion: https://postgr.es/m/MEYP282MB16693DDABDFEC7949AC31857B6599@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM
cstate->whereClause = whereClause;
- MemoryContextSwitchTo(oldcontext);
-
- oldcontext = MemoryContextSwitchTo(cstate->copycontext);
-
/* Initialize state variables */
cstate->eol_type = EOL_UNKNOWN;
cstate->cur_relname = RelationGetRelationName(cstate->rel);