forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit5b6b5e5
committed
Don't set a fast default for anything but a plain table
The fast default code added in Release 11 omitted to check that thetable a fast default was being added to was a plain table. Thus onecould be added to a foreign table, which predicably blows up. Here weperform that check.In addition, on the back branches, since some of these might haveescaped into the wild, if we encounter a missing value foran attribute of something other than a plain table we ignore it.Fixes bug #17056Backpatch to release 11,Reviewed by: Andres Freund, Álvaro Herrera and Tom Lane1 parent357cb8f commit5b6b5e5
File tree
5 files changed
+63
-4
lines changed- src
- backend
- catalog
- commands
- utils/cache
- test/regress
- expected
- sql
5 files changed
+63
-4
lines changedLines changed: 9 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2120 | 2120 |
| |
2121 | 2121 |
| |
2122 | 2122 |
| |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
| 2129 | + | |
2123 | 2130 |
| |
2124 | 2131 |
| |
2125 | 2132 |
| |
| |||
2246 | 2253 |
| |
2247 | 2254 |
| |
2248 | 2255 |
| |
2249 |
| - | |
| 2256 | + | |
| 2257 | + | |
2250 | 2258 |
| |
2251 | 2259 |
| |
2252 | 2260 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11774 | 11774 |
| |
11775 | 11775 |
| |
11776 | 11776 |
| |
11777 |
| - | |
| 11777 | + | |
| 11778 | + | |
11778 | 11779 |
| |
11779 |
| - | |
| 11780 | + | |
11780 | 11781 |
| |
11781 | 11782 |
| |
11782 | 11783 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
550 | 550 |
| |
551 | 551 |
| |
552 | 552 |
| |
| 553 | + | |
553 | 554 |
| |
554 | 555 |
| |
555 | 556 |
| |
| |||
563 | 564 |
| |
564 | 565 |
| |
565 | 566 |
| |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
566 | 583 |
| |
567 | 584 |
| |
568 | 585 |
| |
| |||
584 | 601 |
| |
585 | 602 |
| |
586 | 603 |
| |
587 |
| - | |
| 604 | + | |
588 | 605 |
| |
589 | 606 |
| |
590 | 607 |
| |
|
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
797 | 797 |
| |
798 | 798 |
| |
799 | 799 |
| |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
| 814 | + | |
| 815 | + | |
800 | 816 |
| |
| 817 | + | |
| 818 | + | |
| 819 | + | |
801 | 820 |
| |
802 | 821 |
| |
803 | 822 |
| |
|
Lines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
524 | 524 |
| |
525 | 525 |
| |
526 | 526 |
| |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
527 | 538 |
| |
528 | 539 |
| |
| 540 | + | |
| 541 | + | |
| 542 | + | |
529 | 543 |
| |
530 | 544 |
| |
531 | 545 |
| |
|
0 commit comments
Comments
(0)