forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b2e9fd

Richard Guo
Remove redundant code in create_gather_merge_path
In create_gather_merge_path, we should always guarantee that thesubpath is adequately ordered, and we do not add a Sort node increateplan.c for a Gather Merge node. Therefore, the 'else' branch increate_gather_merge_path, which computes the cost for a Sort node, isredundant.This patch removes the redundant code and emits an error if thesubpath is not sufficiently ordered. Meanwhile, this patch changesthe check for the subpath's pathkeys in create_gather_merge_plan to anAssert.Author: Richard GuoDiscussion:https://postgr.es/m/CAMbWs48u=0bWf3epVtULjJ-=M9Hbkz+ieZQAOS=BfbXZFqbDCg@mail.gmail.com1 parent581df21 commit8b2e9fd
2 files changed
+14
-30
lines changedLines changed: 2 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1987 | 1987 |
| |
1988 | 1988 |
| |
1989 | 1989 |
| |
1990 |
| - | |
1991 | 1990 |
| |
1992 | 1991 |
| |
1993 |
| - | |
1994 |
| - | |
1995 |
| - | |
1996 |
| - | |
| 1992 | + | |
1997 | 1993 |
| |
1998 |
| - | |
1999 |
| - | |
| 1994 | + | |
2000 | 1995 |
| |
2001 | 1996 |
| |
2002 | 1997 |
| |
|
Lines changed: 12 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1889 | 1889 |
| |
1890 | 1890 |
| |
1891 | 1891 |
| |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1892 | 1902 |
| |
1893 | 1903 |
| |
1894 | 1904 |
| |
| |||
1900 | 1910 |
| |
1901 | 1911 |
| |
1902 | 1912 |
| |
1903 |
| - | |
1904 |
| - | |
1905 |
| - | |
1906 |
| - | |
1907 |
| - | |
1908 |
| - | |
1909 |
| - | |
1910 |
| - | |
1911 |
| - | |
1912 |
| - | |
1913 |
| - | |
1914 |
| - | |
1915 |
| - | |
1916 |
| - | |
1917 |
| - | |
1918 |
| - | |
1919 |
| - | |
1920 |
| - | |
1921 |
| - | |
1922 |
| - | |
1923 |
| - | |
1924 |
| - | |
1925 |
| - | |
| 1913 | + | |
| 1914 | + | |
1926 | 1915 |
| |
1927 | 1916 |
| |
1928 | 1917 |
| |
|
0 commit comments
Comments
(0)