mirror of https://github.com/citusdata/citus.git
Handle DoCopy changes
Requires a non-nULL ParseState in PostgreSQL 10, so we make one.pull/1439/head
parent
7cf2b48f64
commit
d2d1d47150
|
@ -532,7 +532,18 @@ CopyTaskFilesFromDirectory(StringInfo schemaName, StringInfo relationName,
|
|||
copyStatement->options = list_make1(copyOption);
|
||||
}
|
||||
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
{
|
||||
ParseState *pstate = make_parsestate(NULL);
|
||||
pstate->p_sourcetext = queryString;
|
||||
|
||||
DoCopy(pstate, copyStatement, -1, -1, &copiedRowCount);
|
||||
|
||||
free_parsestate(pstate);
|
||||
}
|
||||
#else
|
||||
DoCopy(copyStatement, queryString, &copiedRowCount);
|
||||
#endif
|
||||
copiedRowTotal += copiedRowCount;
|
||||
CommandCounterIncrement();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue