- Notifications
You must be signed in to change notification settings - Fork5
Commitb310b6e
committed
Revise collation derivation method and expression-tree representation.
All expression nodes now have an explicit output-collation field, unlessthey are known to only return a noncollatable data type (such as booleanor record). Also, nodes that can invoke collation-aware functions storea separate field that is the collation value to pass to the function.This avoids confusion that arises when a function has collatable inputsand noncollatable output type, or vice versa.Also, replace the parser's on-the-fly collation assignment method witha post-pass over the completed expression tree. This allows us to usea more complex (and hopefully more nearly spec-compliant) assignmentrule without paying for it in extra storage in every expression node.Fix assorted bugs in the planner's handling of collations by makingcollation one of the defining properties of an EquivalenceClass andby converting CollateExprs into discardable RelabelType nodes duringexpression preprocessing.1 parent025f4c7 commitb310b6e
File tree
73 files changed
+2341
-1060
lines changed- src
- backend
- access
- gin
- index
- catalog
- commands
- executor
- nodes
- optimizer
- path
- plan
- util
- parser
- utils
- adt
- fmgr
- sort
- include
- catalog
- nodes
- optimizer
- parser
- pl/plpgsql/src
- test/regress
- expected
- sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+2341
-1060
lines changedLines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
61 | 61 |
| |
62 | 62 |
| |
63 | 63 |
| |
64 |
| - | |
| 64 | + | |
65 | 65 |
| |
66 | 66 |
| |
67 | 67 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
872 | 872 |
| |
873 | 873 |
| |
874 | 874 |
| |
875 |
| - | |
| 875 | + | |
876 | 876 |
| |
877 | 877 |
| |
878 | 878 |
| |
|
Lines changed: 14 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1506 | 1506 |
| |
1507 | 1507 |
| |
1508 | 1508 |
| |
1509 |
| - | |
1510 |
| - | |
1511 |
| - | |
| 1509 | + | |
| 1510 | + | |
| 1511 | + | |
1512 | 1512 |
| |
1513 | 1513 |
| |
1514 | 1514 |
| |
| |||
1535 | 1535 |
| |
1536 | 1536 |
| |
1537 | 1537 |
| |
1538 |
| - | |
| 1538 | + | |
1539 | 1539 |
| |
1540 |
| - | |
| 1540 | + | |
1541 | 1541 |
| |
1542 |
| - | |
| 1542 | + | |
1543 | 1543 |
| |
1544 | 1544 |
| |
1545 | 1545 |
| |
1546 |
| - | |
| 1546 | + | |
1547 | 1547 |
| |
1548 |
| - | |
| 1548 | + | |
1549 | 1549 |
| |
1550 |
| - | |
| 1550 | + | |
1551 | 1551 |
| |
1552 | 1552 |
| |
1553 | 1553 |
| |
| |||
1579 | 1579 |
| |
1580 | 1580 |
| |
1581 | 1581 |
| |
| 1582 | + | |
| 1583 | + | |
| 1584 | + | |
| 1585 | + | |
| 1586 | + | |
1582 | 1587 |
| |
1583 | 1588 |
| |
1584 | 1589 |
| |
|
Lines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
| |||
2387 | 2388 |
| |
2388 | 2389 |
| |
2389 | 2390 |
| |
| 2391 | + | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
2390 | 2396 |
| |
2391 | 2397 |
| |
2392 | 2398 |
| |
| |||
2414 | 2420 |
| |
2415 | 2421 |
| |
2416 | 2422 |
| |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
| 2427 | + | |
2417 | 2428 |
| |
2418 | 2429 |
| |
2419 | 2430 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1931 | 1931 |
| |
1932 | 1932 |
| |
1933 | 1933 |
| |
1934 |
| - | |
| 1934 | + | |
1935 | 1935 |
| |
1936 | 1936 |
| |
1937 | 1937 |
| |
| |||
2254 | 2254 |
| |
2255 | 2255 |
| |
2256 | 2256 |
| |
2257 |
| - | |
| 2257 | + | |
2258 | 2258 |
| |
2259 | 2259 |
| |
2260 | 2260 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
51 | 51 |
| |
52 | 52 |
| |
53 | 53 |
| |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
56 | 57 |
| |
| |||
334 | 335 |
| |
335 | 336 |
| |
336 | 337 |
| |
| 338 | + | |
337 | 339 |
| |
338 | 340 |
| |
339 | 341 |
| |
|
Lines changed: 21 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
883 | 883 |
| |
884 | 884 |
| |
885 | 885 |
| |
886 |
| - | |
| 886 | + | |
887 | 887 |
| |
888 | 888 |
| |
| 889 | + | |
| 890 | + | |
| 891 | + | |
| 892 | + | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
889 | 906 |
| |
890 |
| - | |
| 907 | + | |
891 | 908 |
| |
892 |
| - | |
| 909 | + | |
893 | 910 |
| |
894 | 911 |
| |
895 |
| - | |
896 | 912 |
| |
| 913 | + | |
897 | 914 |
| |
898 | 915 |
| |
899 | 916 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
26 | 27 |
| |
27 | 28 |
| |
28 | 29 |
| |
| |||
368 | 369 |
| |
369 | 370 |
| |
370 | 371 |
| |
| 372 | + | |
| 373 | + | |
| 374 | + | |
371 | 375 |
| |
372 | 376 |
| |
373 | 377 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
| 61 | + | |
61 | 62 |
| |
62 | 63 |
| |
63 | 64 |
| |
| |||
6598 | 6599 |
| |
6599 | 6600 |
| |
6600 | 6601 |
| |
| 6602 | + | |
| 6603 | + | |
| 6604 | + | |
6601 | 6605 |
| |
6602 | 6606 |
| |
6603 | 6607 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
54 | 54 |
| |
55 | 55 |
| |
56 | 56 |
| |
| 57 | + | |
57 | 58 |
| |
58 | 59 |
| |
59 | 60 |
| |
| |||
2341 | 2342 |
| |
2342 | 2343 |
| |
2343 | 2344 |
| |
| 2345 | + | |
2344 | 2346 |
| |
2345 | 2347 |
| |
2346 | 2348 |
| |
| |||
2352 | 2354 |
| |
2353 | 2355 |
| |
2354 | 2356 |
| |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
2355 | 2362 |
| |
2356 | 2363 |
| |
2357 | 2364 |
| |
|
Lines changed: 12 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
129 | 129 |
| |
130 | 130 |
| |
131 | 131 |
| |
| 132 | + | |
132 | 133 |
| |
133 |
| - | |
134 |
| - | |
| 134 | + | |
| 135 | + | |
135 | 136 |
| |
136 | 137 |
| |
137 |
| - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
138 | 146 |
| |
139 |
| - | |
| 147 | + | |
140 | 148 |
| |
141 | 149 |
| |
142 | 150 |
| |
|
0 commit comments
Comments
(0)