Small fix to PG12 compatibility

pull/5409/head
Marco Slot 2021-09-10 14:20:50 +02:00
parent be9fc69923
commit ad79a5e080
1 changed files with 3 additions and 2 deletions

View File

@ -577,10 +577,11 @@ CopyTaskFilesFromDirectory(StringInfo schemaName, StringInfo relationName,
parseState->p_sourcetext = queryString;
Relation relation = table_openrv(rangeVar, RowExclusiveLock);
(void) addRangeTableEntryForRelation(parseState, relation,
#if PG_VERSION_NUM >= PG_VERSION_12
(void) addRangeTableEntryForRelation(parseState, relation, RowExclusiveLock,
NULL, false, false);
RowExclusiveLock,
#endif
NULL, false, false);
CopyState copyState = BeginCopyFrom(parseState,
relation,