mirror of https://github.com/citusdata/citus.git
Update test file
parent
c35d9fd10f
commit
fef589660e
|
@ -482,7 +482,11 @@ WARNING: could not find any shard placements for shardId 1220017
|
|||
(1 row)
|
||||
|
||||
-- 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, pgs.shardid, pgp.shardstate, nodename, nodeport
|
||||
FROM pg_dist_shard_placement pgp
|
||||
INNER JOIN pg_dist_shard pgs
|
||||
ON pgp.shardid = pgs.shardid
|
||||
ORDER BY shardstate, shardid;
|
||||
logicalrelid | shardid | shardstate | nodename | nodeport
|
||||
---------------------------------------------------------------------
|
||||
cluster_management_test | 1220000 | 1 | localhost | 57637
|
||||
|
@ -1170,8 +1174,10 @@ SELECT create_distributed_table('test_dist_non_colocated', 'x', colocate_with =>
|
|||
-- colocated tables should not be placed on nodedes that were switched to
|
||||
-- shouldhaveshards true
|
||||
SELECT nodeport, count(*)
|
||||
FROM pg_dist_shard JOIN pg_dist_shard_placement USING (shardid)
|
||||
WHERE logicalrelid = 'test_dist_colocated'::regclass GROUP BY nodeport ORDER BY nodeport;
|
||||
FROM pg_dist_shard_placement pgp
|
||||
INNER JOIN pg_dist_shard pgs
|
||||
ON pgp.shardid = pgs.shardid
|
||||
WHERE logicalrelid = 'test_dist_colocated'::regclass GROUP BY nodeport ORDER BY nodeport;
|
||||
nodeport | count
|
||||
---------------------------------------------------------------------
|
||||
57637 | 4
|
||||
|
|
Loading…
Reference in New Issue