- Notifications
You must be signed in to change notification settings - Fork5.2k
Commite16c9cd
Fix error message for ALTER CONSTRAINT ... NOT VALID
Trying to alter a constraint so that it becomes NOT VALID results in anerror that assumes the constraint is a foreign key. This is potentiallywrong, so give a more generic error message.While at it, give CREATE CONSTRAINT TRIGGER a better error message aswell.Co-authored-by: jian he <jian.universality@gmail.com>Co-authored-by: Fujii Masao <masao.fujii@oss.nttdata.com>Co-authored-by: Álvaro Herrera <alvherre@kurilemu.de>Co-authored-by: Amul Sul <sulamul@gmail.com>Discussion:https://postgr.es/m/CACJufxHSp2puxP=q8ZtUGL1F+heapnzqFBZy5ZNGUjUgwjBqTQ@mail.gmail.com1 parent4cb889d commite16c9cd
File tree
4 files changed
+15
-1
lines changed- src
- backend/parser
- test/regress
- expected
- sql
4 files changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2668 | 2668 | | |
2669 | 2669 | | |
2670 | 2670 | | |
| 2671 | + | |
| 2672 | + | |
| 2673 | + | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
2671 | 2677 | | |
2672 | 2678 | | |
2673 | 2679 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
751 | 756 | | |
752 | 757 | | |
753 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1359 | 1359 | | |
1360 | 1360 | | |
1361 | 1361 | | |
1362 | | - | |
| 1362 | + | |
1363 | 1363 | | |
1364 | 1364 | | |
1365 | 1365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
540 | 543 | | |
541 | 544 | | |
542 | 545 | | |
| |||
0 commit comments
Comments
(0)