forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit50659d6
Fix not-null constraint test
When a partitioned table has a primary key, trying to find thecorresponding not-null constraint for that column would come up empty,causing code that's trying to check said not-null constraint to crash.Fix by only running the check when the not-null constraint exists.Reported-by: Alexander Lakhin <exclusion@gmail.com>Discussion:https://postgr.es/m/d57b4a69-7394-3146-5976-9a1ef27e7972@gmail.com1 parent0f9a438 commit50659d6
File tree
3 files changed
+41
-7
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+41
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15746 | 15746 | | |
15747 | 15747 | | |
15748 | 15748 | | |
15749 | | - | |
15750 | | - | |
15751 | | - | |
| 15749 | + | |
| 15750 | + | |
| 15751 | + | |
| 15752 | + | |
15752 | 15753 | | |
15753 | 15754 | | |
15754 | 15755 | | |
15755 | 15756 | | |
15756 | 15757 | | |
15757 | 15758 | | |
15758 | 15759 | | |
15759 | | - | |
| 15760 | + | |
| 15761 | + | |
15760 | 15762 | | |
15761 | | - | |
15762 | | - | |
15763 | | - | |
| 15763 | + | |
| 15764 | + | |
| 15765 | + | |
15764 | 15766 | | |
15765 | 15767 | | |
15766 | 15768 | | |
| |||
15981 | 15983 | | |
15982 | 15984 | | |
15983 | 15985 | | |
| 15986 | + | |
| 15987 | + | |
| 15988 | + | |
| 15989 | + | |
| 15990 | + | |
| 15991 | + | |
| 15992 | + | |
| 15993 | + | |
| 15994 | + | |
15984 | 15995 | | |
15985 | 15996 | | |
15986 | 15997 | | |
15987 | 15998 | | |
| 15999 | + | |
15988 | 16000 | | |
15989 | 16001 | | |
15990 | 16002 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1006 | 1006 | | |
1007 | 1007 | | |
1008 | 1008 | | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
1009 | 1020 | | |
1010 | 1021 | | |
1011 | 1022 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
660 | 671 | | |
661 | 672 | | |
662 | 673 | | |
| |||
0 commit comments
Comments
(0)