Not consider single shard hash dist. tables as replicated (#4413)

cte_inline_improve
Onur Tirtir 2020-12-15 14:33:01 +03:00 committed by GitHub
parent cc04fce10f
commit 0eb5701658
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ SingleReplicatedTable(Oid relationId)
List *shardPlacementList = NIL; List *shardPlacementList = NIL;
/* we could have append/range distributed tables without shards */ /* we could have append/range distributed tables without shards */
if (list_length(shardList) <= 1) if (list_length(shardList) == 0)
{ {
return false; return false;
} }