forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit63247be
committed
Fix parser so that we don't modify the user-written ORDER BY list in order
to represent DISTINCT or DISTINCT ON. This gets rid of a longstandingannoyance that a view or rule using SELECT DISTINCT will be dumped outwith an overspecified ORDER BY list, and is one small step along the wayto decoupling DISTINCT and ORDER BY enough so that hash-based implementationof DISTINCT will be possible. In passing, improve transformDistinctClauseso that it doesn't reject duplicate DISTINCT ON items, as was reported bySteve Midgley a couple weeks ago.1 parentb1fb3b2 commit63247be
File tree
7 files changed
+173
-124
lines changed- src
- backend
- optimizer
- plan
- prep
- parser
- include
- nodes
- parser
7 files changed
+173
-124
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 |
| - | |
| 17 | + | |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
| 291 | + | |
292 | 292 |
| |
293 | 293 |
| |
294 | 294 |
| |
|
Lines changed: 22 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
826 | 826 |
| |
827 | 827 |
| |
828 | 828 |
| |
| 829 | + | |
829 | 830 |
| |
830 | 831 |
| |
831 | 832 |
| |
| |||
864 | 865 |
| |
865 | 866 |
| |
866 | 867 |
| |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
867 | 873 |
| |
868 | 874 |
| |
869 | 875 |
| |
870 | 876 |
| |
871 | 877 |
| |
872 | 878 |
| |
873 |
| - | |
874 |
| - | |
875 |
| - | |
876 |
| - | |
877 |
| - | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
878 | 891 |
| |
879 | 892 |
| |
880 | 893 |
| |
| |||
903 | 916 |
| |
904 | 917 |
| |
905 | 918 |
| |
906 |
| - | |
| 919 | + | |
907 | 920 |
| |
908 |
| - | |
| 921 | + | |
909 | 922 |
| |
910 | 923 |
| |
911 | 924 |
| |
| |||
1172 | 1185 |
| |
1173 | 1186 |
| |
1174 | 1187 |
| |
1175 |
| - | |
| 1188 | + | |
1176 | 1189 |
| |
1177 | 1190 |
| |
1178 | 1191 |
| |
|
Lines changed: 29 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
22 | 22 |
| |
23 | 23 |
| |
24 | 24 |
| |
25 |
| - | |
| 25 | + | |
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| |||
69 | 69 |
| |
70 | 70 |
| |
71 | 71 |
| |
| 72 | + | |
72 | 73 |
| |
73 | 74 |
| |
74 | 75 |
| |
| |||
319 | 320 |
| |
320 | 321 |
| |
321 | 322 |
| |
322 |
| - | |
| 323 | + | |
323 | 324 |
| |
324 | 325 |
| |
325 | 326 |
| |
| |||
384 | 385 |
| |
385 | 386 |
| |
386 | 387 |
| |
387 |
| - | |
| 388 | + | |
388 | 389 |
| |
389 | 390 |
| |
390 | 391 |
| |
| |||
675 | 676 |
| |
676 | 677 |
| |
677 | 678 |
| |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
678 | 704 |
| |
679 | 705 |
| |
680 | 706 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| |||
711 | 711 |
| |
712 | 712 |
| |
713 | 713 |
| |
| 714 | + | |
| 715 | + | |
714 | 716 |
| |
715 | 717 |
| |
716 | 718 |
| |
| |||
725 | 727 |
| |
726 | 728 |
| |
727 | 729 |
| |
728 |
| - | |
| 730 | + | |
729 | 731 |
| |
| 732 | + | |
730 | 733 |
| |
731 | 734 |
| |
732 | 735 |
| |
|
0 commit comments
Comments
(0)