diff --git a/src/backend/distributed/planner/fast_path_router_planner.c b/src/backend/distributed/planner/fast_path_router_planner.c index f795ef480..efb1488ce 100644 --- a/src/backend/distributed/planner/fast_path_router_planner.c +++ b/src/backend/distributed/planner/fast_path_router_planner.c @@ -213,14 +213,10 @@ FastPathRouterQuery(Query *query) * hasForUpdate is tricky because Citus does support only when * replication = 1 or reference tables. */ - if (query->hasForUpdate) + if (query->hasForUpdate && + !(cacheEntry->partitionMethod == DISTRIBUTE_BY_NONE || + SingleReplicatedTable(distributedTableId))) { - if (cacheEntry->partitionMethod == DISTRIBUTE_BY_NONE || - SingleReplicatedTable(distributedTableId)) - { - return true; - } - return false; }