forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6d47021
committed
Fix description and grouping of RangeTblEntry.inh
The inh field of RangeTblEntry was doubly confusingly documented.Some parts of the code insisted that it was only valid forRTE_RELATION entries, other parts said the field was valid for allentries. Neither was quite correct. More correctly, the field isvalid for RTE_RELATION entries but is also used in the planner forRTE_SUBQUERY entries. So it makes more sense to group it with otherfields that are primarily for RTE_RELATION but borrowed byRTE_SUBQUERY. (The exact position was chosen so that it is next torelkind for better struct packing, and next to relid, since relid andinh are sort of the input fields and the others are filled in later.)Also add documentation for the planner's use at the struct definition.Discussion:https://www.postgresql.org/message-id/6c1fbccc-85c8-40d3-b08b-4f47f2093711@eisentraut.org1 parent1f1d73a commit6d47021
File tree
6 files changed
+16
-18
lines changed- src
- backend
- nodes
- parser
- include
- catalog
- nodes
6 files changed
+16
-18
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
503 | 503 |
| |
504 | 504 |
| |
505 | 505 |
| |
| 506 | + | |
506 | 507 |
| |
507 | 508 |
| |
508 | 509 |
| |
| |||
513 | 514 |
| |
514 | 515 |
| |
515 | 516 |
| |
| 517 | + | |
516 | 518 |
| |
517 | 519 |
| |
518 | 520 |
| |
| |||
564 | 566 |
| |
565 | 567 |
| |
566 | 568 |
| |
567 |
| - | |
568 | 569 |
| |
569 | 570 |
| |
570 | 571 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
364 | 364 |
| |
365 | 365 |
| |
366 | 366 |
| |
367 |
| - | |
368 | 367 |
| |
| 368 | + | |
369 | 369 |
| |
370 | 370 |
| |
371 | 371 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
357 | 357 |
| |
358 | 358 |
| |
359 | 359 |
| |
| 360 | + | |
360 | 361 |
| |
361 | 362 |
| |
362 | 363 |
| |
| |||
367 | 368 |
| |
368 | 369 |
| |
369 | 370 |
| |
| 371 | + | |
370 | 372 |
| |
371 | 373 |
| |
372 | 374 |
| |
| |||
428 | 430 |
| |
429 | 431 |
| |
430 | 432 |
| |
431 |
| - | |
432 | 433 |
| |
433 | 434 |
| |
434 | 435 |
| |
|
Lines changed: 2 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1500 | 1500 |
| |
1501 | 1501 |
| |
1502 | 1502 |
| |
| 1503 | + | |
1503 | 1504 |
| |
1504 | 1505 |
| |
1505 | 1506 |
| |
| |||
1517 | 1518 |
| |
1518 | 1519 |
| |
1519 | 1520 |
| |
1520 |
| - | |
1521 | 1521 |
| |
1522 | 1522 |
| |
1523 | 1523 |
| |
| |||
1585 | 1585 |
| |
1586 | 1586 |
| |
1587 | 1587 |
| |
| 1588 | + | |
1588 | 1589 |
| |
1589 | 1590 |
| |
1590 | 1591 |
| |
| |||
1602 | 1603 |
| |
1603 | 1604 |
| |
1604 | 1605 |
| |
1605 |
| - | |
1606 | 1606 |
| |
1607 | 1607 |
| |
1608 | 1608 |
| |
| |||
1700 | 1700 |
| |
1701 | 1701 |
| |
1702 | 1702 |
| |
1703 |
| - | |
1704 | 1703 |
| |
1705 | 1704 |
| |
1706 | 1705 |
| |
| |||
2023 | 2022 |
| |
2024 | 2023 |
| |
2025 | 2024 |
| |
2026 |
| - | |
2027 | 2025 |
| |
2028 | 2026 |
| |
2029 | 2027 |
| |
| |||
2108 | 2106 |
| |
2109 | 2107 |
| |
2110 | 2108 |
| |
2111 |
| - | |
2112 | 2109 |
| |
2113 | 2110 |
| |
2114 | 2111 |
| |
| |||
2189 | 2186 |
| |
2190 | 2187 |
| |
2191 | 2188 |
| |
2192 |
| - | |
2193 | 2189 |
| |
2194 | 2190 |
| |
2195 | 2191 |
| |
| |||
2280 | 2276 |
| |
2281 | 2277 |
| |
2282 | 2278 |
| |
2283 |
| - | |
2284 | 2279 |
| |
2285 | 2280 |
| |
2286 | 2281 |
| |
| |||
2425 | 2420 |
| |
2426 | 2421 |
| |
2427 | 2422 |
| |
2428 |
| - | |
2429 | 2423 |
| |
2430 | 2424 |
| |
2431 | 2425 |
| |
| |||
2545 | 2539 |
| |
2546 | 2540 |
| |
2547 | 2541 |
| |
2548 |
| - | |
2549 | 2542 |
| |
2550 | 2543 |
| |
2551 | 2544 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
57 | 57 |
| |
58 | 58 |
| |
59 | 59 |
| |
60 |
| - | |
| 60 | + | |
61 | 61 |
| |
62 | 62 |
|
Lines changed: 8 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
989 | 989 |
| |
990 | 990 |
| |
991 | 991 |
| |
992 |
| - | |
993 |
| - | |
994 |
| - | |
995 |
| - | |
996 | 992 |
| |
997 | 993 |
| |
998 | 994 |
| |
| |||
1041 | 1037 |
| |
1042 | 1038 |
| |
1043 | 1039 |
| |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
1044 | 1047 |
| |
1045 | 1048 |
| |
1046 | 1049 |
| |
| |||
1070 | 1073 |
| |
1071 | 1074 |
| |
1072 | 1075 |
| |
| 1076 | + | |
1073 | 1077 |
| |
1074 | 1078 |
| |
1075 | 1079 |
| |
| |||
1199 | 1203 |
| |
1200 | 1204 |
| |
1201 | 1205 |
| |
1202 |
| - | |
1203 | 1206 |
| |
1204 | 1207 |
| |
1205 | 1208 |
| |
|
0 commit comments
Comments
(0)