mirror of https://github.com/citusdata/citus.git
Preserve behavior of self dependency recording
recordDependencyOnSingleRelExpr now accepts a "ignore_self" flag to disable recording self-dependencies. Passing "false" preserves existing behavior.pull/1439/head
parent
6a4cd9965c
commit
d5e636b84d
|
@ -953,8 +953,13 @@ RecordDistributedRelationDependencies(Oid distributedRelationId, Node *distribut
|
|||
recordDependencyOn(&relationAddr, &citusExtensionAddr, DEPENDENCY_NORMAL);
|
||||
|
||||
/* make sure the distribution key column/expression does not just go away */
|
||||
#if (PG_VERSION_NUM >= 100000)
|
||||
recordDependencyOnSingleRelExpr(&relationAddr, distributionKey, distributedRelationId,
|
||||
DEPENDENCY_NORMAL, DEPENDENCY_NORMAL, false);
|
||||
#else
|
||||
recordDependencyOnSingleRelExpr(&relationAddr, distributionKey, distributedRelationId,
|
||||
DEPENDENCY_NORMAL, DEPENDENCY_NORMAL);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue