forked from greenplum-db/gpdb-archive
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for Motions before scan if requesting Explicit Redistribute Motion
Previously, `Explicit Redistribute Motion` was added if there were any motions in the subplan, ignoring any motions in `InitPlans`. This patch updates the logic: if an `Explicit Redistribute Motion` has no motions underneath it's subtree, then the row to update must originate from the same segment, and no `Explicit Redistribute Motion` is needed. If there are any motions, `Explicit Redistribute Motion` should be added only if there is a motion between the scan and the `ModifyTable` on the relation we are going to update.
- Loading branch information
Showing
1 changed file
with
95 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters