mirror of https://github.com/citusdata/citus.git
Fix RLS and replica identity propagation on shard move
parent
bce11514b9
commit
4f69298d90
|
@ -562,9 +562,6 @@ GetTableConstructionCommands(Oid relationId)
|
|||
List *replicaIdentityEvents = GetTableReplicaIdentityCommand(relationId);
|
||||
tableDDLEventList = list_concat(tableDDLEventList, replicaIdentityEvents);
|
||||
|
||||
List *policyCommands = CreatePolicyCommands(relationId);
|
||||
tableDDLEventList = list_concat(tableDDLEventList, policyCommands);
|
||||
|
||||
List *triggerCommands = GetExplicitTriggerCommandList(relationId);
|
||||
tableDDLEventList = list_concat(tableDDLEventList, triggerCommands);
|
||||
|
||||
|
@ -670,6 +667,9 @@ GetTableBuildingCommands(Oid relationId, bool includeSequenceDefaults)
|
|||
tableDDLEventList = lappend(tableDDLEventList, tableOwnerDef);
|
||||
}
|
||||
|
||||
List *policyCommands = CreatePolicyCommands(relationId);
|
||||
tableDDLEventList = list_concat(tableDDLEventList, policyCommands);
|
||||
|
||||
/* revert back to original search_path */
|
||||
PopOverrideSearchPath();
|
||||
|
||||
|
|
|
@ -775,7 +775,7 @@ CopyShardCommandList(ShardInterval *shardInterval, const char *sourceNodeName,
|
|||
copyShardDataCommand->data);
|
||||
}
|
||||
|
||||
List *indexCommandList = GetTableIndexAndConstraintCommands(relationId);
|
||||
List *indexCommandList = GetTableConstructionCommands(relationId);
|
||||
indexCommandList = WorkerApplyShardDDLCommandList(indexCommandList, shardId);
|
||||
|
||||
copyShardToNodeCommandsList = list_concat(copyShardToNodeCommandsList,
|
||||
|
|
Loading…
Reference in New Issue