mirror of https://github.com/citusdata/citus.git
Small fix to PG12 compatibility
parent
0da06876a3
commit
9747961c04
|
@ -620,10 +620,11 @@ CopyTaskFilesFromDirectory(StringInfo schemaName, StringInfo relationName,
|
||||||
parseState->p_sourcetext = queryString;
|
parseState->p_sourcetext = queryString;
|
||||||
|
|
||||||
Relation relation = heap_openrv(rangeVar, RowExclusiveLock);
|
Relation relation = heap_openrv(rangeVar, RowExclusiveLock);
|
||||||
|
(void) addRangeTableEntryForRelation(parseState, relation,
|
||||||
#if PG_VERSION_NUM >= PG_VERSION_12
|
#if PG_VERSION_NUM >= PG_VERSION_12
|
||||||
(void) addRangeTableEntryForRelation(parseState, relation, RowExclusiveLock,
|
RowExclusiveLock,
|
||||||
NULL, false, false);
|
|
||||||
#endif
|
#endif
|
||||||
|
NULL, false, false);
|
||||||
|
|
||||||
CopyState copyState = BeginCopyFrom(parseState,
|
CopyState copyState = BeginCopyFrom(parseState,
|
||||||
relation,
|
relation,
|
||||||
|
|
Loading…
Reference in New Issue