mirror of https://github.com/citusdata/citus.git
Use Row Exclusive Lock on distributed table
parent
04261d9bc4
commit
38b29a7593
|
@ -333,7 +333,7 @@ CitusCopyFrom(CopyStmt *copyStatement, char *completionTag)
|
|||
compareFunction = ShardIntervalCompareFunction(partitionColumn, partitionMethod);
|
||||
|
||||
/* allocate column values and nulls arrays */
|
||||
rel = heap_open(tableId, AccessShareLock);
|
||||
rel = heap_open(tableId, RowExclusiveLock);
|
||||
tupleDescriptor = RelationGetDescr(rel);
|
||||
columnCount = tupleDescriptor->natts;
|
||||
columnValues = palloc0(columnCount * sizeof(Datum));
|
||||
|
|
Loading…
Reference in New Issue