forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2602ee4
committed
Don't crash on reference to an un-available system column.
Adopt a more consistent policy about what slot-type-specificgetsysattr functions should do when system attributes are notavailable. To wit, they should all throw the same user-orientederror, rather than variously crashing or emitting developer-orientedmessages.This closes a identifiable problem in commitsa71cfc5 and3fb9310 (in v13 and v12), so back-patch into those branches,along with a test case to try to ensure we don't break it again.It is not known that any of the former crash cases are reachablein HEAD, but this seems like a good safety improvement in any case.Discussion:https://postgr.es/m/141051591267657@mail.yandex.ru1 parent00037d8 commit2602ee4
File tree
3 files changed
+120
-5
lines changed- src
- backend/executor
- test/regress
- expected
- sql
3 files changed
+120
-5
lines changedLines changed: 35 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
122 | 122 |
| |
123 | 123 |
| |
124 | 124 |
| |
125 |
| - | |
126 |
| - | |
127 |
| - | |
| 125 | + | |
| 126 | + | |
128 | 127 |
| |
129 | 128 |
| |
130 | 129 |
| |
131 | 130 |
| |
132 | 131 |
| |
133 | 132 |
| |
134 | 133 |
| |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
135 | 139 |
| |
136 | 140 |
| |
137 | 141 |
| |
138 |
| - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
139 | 147 |
| |
140 | 148 |
| |
141 | 149 |
| |
| |||
335 | 343 |
| |
336 | 344 |
| |
337 | 345 |
| |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
338 | 355 |
| |
339 | 356 |
| |
340 | 357 |
| |
| |||
497 | 514 |
| |
498 | 515 |
| |
499 | 516 |
| |
500 |
| - | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
501 | 522 |
| |
502 | 523 |
| |
503 | 524 |
| |
| |||
681 | 702 |
| |
682 | 703 |
| |
683 | 704 |
| |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
684 | 714 |
| |
685 | 715 |
| |
686 | 716 |
| |
|
Lines changed: 53 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
834 | 834 |
| |
835 | 835 |
| |
836 | 836 |
| |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
837 | 890 |
| |
838 | 891 |
| |
839 | 892 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
527 | 527 |
| |
528 | 528 |
| |
529 | 529 |
| |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
530 | 562 |
| |
531 | 563 |
| |
532 | 564 |
| |
|
0 commit comments
Comments
(0)