forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit306c318
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 parentba529a6 commit306c318
File tree
5 files changed
+63
-5
lines changed- src
- backend
- catalog
- commands
- utils/cache
- test/regress
- expected
- sql
5 files changed
+63
-5
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2065 | 2065 |
| |
2066 | 2066 |
| |
2067 | 2067 |
| |
| 2068 | + | |
| 2069 | + | |
| 2070 | + | |
| 2071 | + | |
| 2072 | + | |
| 2073 | + | |
| 2074 | + | |
2068 | 2075 |
| |
2069 | 2076 |
| |
2070 | 2077 |
| |
| |||
2198 | 2205 |
| |
2199 | 2206 |
| |
2200 | 2207 |
| |
2201 |
| - | |
| 2208 | + | |
2202 | 2209 |
| |
2203 | 2210 |
| |
2204 | 2211 |
| |
|
Lines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
10315 | 10315 |
| |
10316 | 10316 |
| |
10317 | 10317 |
| |
10318 |
| - | |
10319 |
| - | |
| 10318 | + | |
| 10319 | + | |
| 10320 | + | |
10320 | 10321 |
| |
10321 |
| - | |
| 10322 | + | |
10322 | 10323 |
| |
10323 | 10324 |
| |
10324 | 10325 |
| |
|
Lines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
546 | 546 |
| |
547 | 547 |
| |
548 | 548 |
| |
| 549 | + | |
549 | 550 |
| |
550 | 551 |
| |
551 | 552 |
| |
| |||
559 | 560 |
| |
560 | 561 |
| |
561 | 562 |
| |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
562 | 579 |
| |
563 | 580 |
| |
564 | 581 |
| |
| |||
578 | 595 |
| |
579 | 596 |
| |
580 | 597 |
| |
581 |
| - | |
| 598 | + | |
582 | 599 |
| |
583 | 600 |
| |
584 | 601 |
| |
|
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)