mirror of https://github.com/citusdata/citus.git
Updating SQL test query
parent
27dae42843
commit
cfd914ac4a
|
@ -3599,7 +3599,7 @@ InitializeDistCache(void)
|
||||||
DistShardScanKey[0].sk_collation = InvalidOid;
|
DistShardScanKey[0].sk_collation = InvalidOid;
|
||||||
DistShardScanKey[0].sk_attno = Anum_pg_dist_shard_logicalrelid;
|
DistShardScanKey[0].sk_attno = Anum_pg_dist_shard_logicalrelid;
|
||||||
|
|
||||||
fmgr_info_cxt(F_OIDEQ,
|
fmgr_info_cxt(F_INT4EQ,
|
||||||
&DistShardScanKey[1].sk_func,
|
&DistShardScanKey[1].sk_func,
|
||||||
MetadataCacheMemoryContext);
|
MetadataCacheMemoryContext);
|
||||||
DistShardScanKey[1].sk_strategy = BTLessStrategyNumber;
|
DistShardScanKey[1].sk_strategy = BTLessStrategyNumber;
|
||||||
|
|
|
@ -188,7 +188,10 @@ CREATE TABLE cluster_management_test_colocated (col_1 text, col_2 int);
|
||||||
SELECT create_distributed_table('cluster_management_test_colocated', 'col_1', 'hash', colocate_with => 'cluster_management_test');
|
SELECT create_distributed_table('cluster_management_test_colocated', 'col_1', 'hash', colocate_with => 'cluster_management_test');
|
||||||
|
|
||||||
-- Check that colocated shards don't get created for shards that are to be deleted
|
-- Check that colocated shards don't get created for shards that are to be deleted
|
||||||
SELECT logicalrelid, shardid, shardstate, nodename, nodeport FROM pg_dist_shard_placement NATURAL JOIN pg_dist_shard ORDER BY shardstate, shardid;
|
SELECT logicalrelid, shardid, shardstate, nodename, nodeport
|
||||||
|
FROM pg_dist_shard_placement
|
||||||
|
INNER JOIN pg_dist_shard USING (shardid)
|
||||||
|
ORDER BY shardstate, shardid;
|
||||||
|
|
||||||
-- clean-up
|
-- clean-up
|
||||||
SELECT 1 FROM master_add_node('localhost', :worker_2_port);
|
SELECT 1 FROM master_add_node('localhost', :worker_2_port);
|
||||||
|
|
Loading…
Reference in New Issue