forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6bc2769
committed
Error out when Gather Merge input is not sorted
To build Gather Merge path, the input needs to be sufficiently sorted.Ensuring this is the responsibility of the code constructing the paths,but create_gather_merge_plan tried to handle unsorted paths by addingan explicit Sort. In light of the recent issues related to IncrementalSort, this is rather fragile. Some of the expressions may be volatileor parallel unsafe, in which case we can't add the Sort here.We could do more checks and add the Sort in at least some cases, butit seems cleaner to just error out and make it clear this is a bug incode constructing those paths.Author: James ColemanReviewed-by: Tomas VondraDiscussion:https://postgr.es/m/CAAaqYe8cK3g5CfLC4w7bs%3DhC0mSksZC%3DH5M8LSchj5e5OxpTAg%40mail.gmail.comDiscussion:https://postgr.es/m/CAJGNTeNaxpXgBVcRhJX%2B2vSbq%2BF2kJqGBcvompmpvXb7pq%2BoFA%40mail.gmail.com1 parentc06d6aa commit6bc2769
1 file changed
+8
-6
lines changedLines changed: 8 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1793 | 1793 |
| |
1794 | 1794 |
| |
1795 | 1795 |
| |
1796 |
| - | |
| 1796 | + | |
| 1797 | + | |
| 1798 | + | |
| 1799 | + | |
| 1800 | + | |
| 1801 | + | |
| 1802 | + | |
1797 | 1803 |
| |
1798 |
| - | |
1799 |
| - | |
1800 |
| - | |
1801 |
| - | |
1802 |
| - | |
| 1804 | + | |
1803 | 1805 |
| |
1804 | 1806 |
| |
1805 | 1807 |
| |
|
0 commit comments
Comments
(0)