MCPcopy Create free account
hub / github.com/apache/cloudberry / CopyToQueryOnSegment

Function CopyToQueryOnSegment

src/backend/commands/copy.c:1229–1237  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1227}
1228
1229static uint64
1230CopyToQueryOnSegment(CopyToState cstate)
1231{
1232 Assert(Gp_role != GP_ROLE_EXECUTE);
1233
1234 /* run the plan --- the dest receiver will send tuples */
1235 ExecutorRun(cstate->queryDesc, ForwardScanDirection, 0L, true);
1236 return 0;
1237}
1238
1239/*
1240 * CopyGetAttnums - build an integer list of attnums to be copied

Callers 1

DoCopyFunction · 0.85

Calls 1

ExecutorRunFunction · 0.85

Tested by

no test coverage detected