mirror of https://github.com/citusdata/citus.git
Rename ContainsOnlyLocalTables to ContainsOnlyLocalOrReferenceTables for clarity and update related documentation
parent
6c03d1b82b
commit
27fc62787f
|
@ -1583,7 +1583,7 @@ IsLocalTableModification(Oid targetRelationId, Query *query, uint64 shardId,
|
|||
return true;
|
||||
}
|
||||
|
||||
if (shardId == INVALID_SHARD_ID && ContainsOnlyLocalTables(rteProperties))
|
||||
if (shardId == INVALID_SHARD_ID && ContainsOnlyLocalOrReferenceTables(rteProperties))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -2556,12 +2556,14 @@ AllShardsColocated(List *relationShardList)
|
|||
|
||||
|
||||
/*
|
||||
* ContainsOnlyLocalTables returns true if there is only
|
||||
* local tables and not any distributed or reference table.
|
||||
* ContainsOnlyLocalOrReferenceTables returns true if there are no distributed
|
||||
* tables in the query. In other words, the query might reference only local
|
||||
* tables and/or reference tables, but no fully distributed tables.
|
||||
*/
|
||||
bool
|
||||
ContainsOnlyLocalTables(RTEListProperties *rteProperties)
|
||||
ContainsOnlyLocalOrReferenceTables(RTEListProperties *rteProperties)
|
||||
{
|
||||
// If hasDistributedTable is false, then all tables are either local or reference.
|
||||
return !rteProperties->hasDistributedTable;
|
||||
}
|
||||
|
||||
|
|
|
@ -118,7 +118,7 @@ extern bool HasDangerousJoinUsing(List *rtableList, Node *jtnode);
|
|||
extern Job * RouterJob(Query *originalQuery,
|
||||
PlannerRestrictionContext *plannerRestrictionContext,
|
||||
DeferredErrorMessage **planningError);
|
||||
extern bool ContainsOnlyLocalTables(RTEListProperties *rteProperties);
|
||||
extern bool ContainsOnlyLocalOrReferenceTables(RTEListProperties *rteProperties);
|
||||
extern RangeTblEntry * ExtractSourceResultRangeTableEntry(Query *query);
|
||||
|
||||
#endif /* MULTI_ROUTER_PLANNER_H */
|
||||
|
|
|
@ -103,7 +103,7 @@ test: multi_dropped_column_aliases foreign_key_restriction_enforcement
|
|||
test: binary_protocol
|
||||
test: alter_table_set_access_method
|
||||
test: alter_distributed_table
|
||||
test: issue_5248 issue_5099 issue_5763 issue_6543 issue_6758 issue_7477
|
||||
test: issue_5248 issue_5099 issue_5763 issue_6543 issue_6758 issue_7477 issue_7891
|
||||
test: object_propagation_debug
|
||||
test: undistribute_table
|
||||
test: run_command_on_all_nodes
|
||||
|
|
Loading…
Reference in New Issue