From fef589660e400baa399b8a6b2e30b992a129cc86 Mon Sep 17 00:00:00 2001 From: Nitish Upreti Date: Mon, 15 Aug 2022 21:37:49 -0700 Subject: [PATCH] Update test file --- .../regress/expected/multi_cluster_management.out | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/test/regress/expected/multi_cluster_management.out b/src/test/regress/expected/multi_cluster_management.out index cb3fe3a5d..9ef10f57c 100644 --- a/src/test/regress/expected/multi_cluster_management.out +++ b/src/test/regress/expected/multi_cluster_management.out @@ -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