Update test file

users/niupre/DeferredDropSimplified
Nitish Upreti 2022-08-15 21:37:49 -07:00
parent c35d9fd10f
commit fef589660e
1 changed files with 9 additions and 3 deletions

View File

@ -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