Commit 6f8bb7c
committed
Revert structural changes to not-null constraints
There are some problems with the new way to handle these constraints
that were detected at the last minute, and require fixes that appear too
invasive to be doing this late in the cycle. Revert this (again) for
now, we'll try again with these problems fixed.
The following commits are reverted:
b0e96f3 Catalog not-null constraints
9b581c5 Disallow changing NO INHERIT status of a not-null constraint
d0ec2dd Fix not-null constraint test
ac22a95 Move privilege check to the right place
b0f7dd9 Check stack depth in new recursive functions
3af7217 Update information_schema definition for not-null constraints
c370910 Fix propagating attnotnull in multiple inheritance
d9f686a Fix restore of not-null constraints with inheritance
d72d32f Don't try to assign smart names to constraints
0cd7112 Better handle indirect constraint drops
13daa33 Disallow NO INHERIT not-null constraints on partitioned tables
d45597f Disallow direct change of NO INHERIT of not-null constraints
21ac38f Fix inconsistencies in error messages
Discussion: https://postgr.es/m/202405110940.joxlqcx4dogd@alvherre.pgsql1 parent e89f4c6 commit 6f8bb7c
File tree
49 files changed
+709
-4600
lines changed- contrib
- sepgsql/expected
- test_decoding/expected
- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- optimizer/util
- parser
- utils
- adt
- cache
- bin
- pg_dump
- t
- psql
- include
- catalog
- nodes
- test
- modules/test_ddl_deparse
- expected
- regress
- expected
- sql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
49 files changed
+709
-4600
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
| |||
248 | 249 | | |
249 | 250 | | |
250 | 251 | | |
| 252 | + | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| |||
285 | 284 | | |
286 | 285 | | |
287 | 286 | | |
288 | | - | |
289 | 287 | | |
290 | 288 | | |
291 | 289 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 495 | | |
499 | 496 | | |
500 | 497 | | |
| |||
509 | 506 | | |
510 | 507 | | |
511 | 508 | | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | 509 | | |
516 | 510 | | |
517 | 511 | | |
| |||
525 | 519 | | |
526 | 520 | | |
527 | 521 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | 522 | | |
532 | 523 | | |
533 | 524 | | |
| |||
547 | 538 | | |
548 | 539 | | |
549 | 540 | | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | 541 | | |
554 | 542 | | |
555 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1270 | 1270 | | |
1271 | 1271 | | |
1272 | 1272 | | |
1273 | | - | |
1274 | | - | |
| 1273 | + | |
1275 | 1274 | | |
1276 | 1275 | | |
1277 | 1276 | | |
| |||
2502 | 2501 | | |
2503 | 2502 | | |
2504 | 2503 | | |
2505 | | - | |
2506 | | - | |
| 2504 | + | |
| 2505 | + | |
| 2506 | + | |
2507 | 2507 | | |
2508 | 2508 | | |
| 2509 | + | |
| 2510 | + | |
| 2511 | + | |
2509 | 2512 | | |
2510 | 2513 | | |
2511 | 2514 | | |
| |||
2567 | 2570 | | |
2568 | 2571 | | |
2569 | 2572 | | |
2570 | | - | |
| 2573 | + | |
2571 | 2574 | | |
2572 | 2575 | | |
2573 | 2576 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
767 | | - | |
768 | | - | |
769 | | - | |
770 | | - | |
771 | | - | |
772 | | - | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | 766 | | |
791 | 767 | | |
792 | 768 | | |
793 | | - | |
| 769 | + | |
| 770 | + | |
794 | 771 | | |
795 | 772 | | |
796 | 773 | | |
797 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
798 | 777 | | |
799 | 778 | | |
800 | 779 | | |
| |||
811 | 790 | | |
812 | 791 | | |
813 | 792 | | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | 793 | | |
819 | 794 | | |
820 | 795 | | |
| |||
1008 | 983 | | |
1009 | 984 | | |
1010 | 985 | | |
1011 | | - | |
| 986 | + | |
1012 | 987 | | |
1013 | 988 | | |
1014 | 989 | | |
| |||
1668 | 1643 | | |
1669 | 1644 | | |
1670 | 1645 | | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | | - | |
1675 | | - | |
| 1646 | + | |
| 1647 | + | |
1676 | 1648 | | |
1677 | 1649 | | |
1678 | 1650 | | |
1679 | | - | |
1680 | | - | |
1681 | 1651 | | |
1682 | 1652 | | |
1683 | 1653 | | |
| |||
1718 | 1688 | | |
1719 | 1689 | | |
1720 | 1690 | | |
1721 | | - | |
| 1691 | + | |
| 1692 | + | |
1722 | 1693 | | |
1723 | 1694 | | |
1724 | 1695 | | |
1725 | | - | |
1726 | | - | |
1727 | | - | |
1728 | | - | |
1729 | | - | |
| 1696 | + | |
1730 | 1697 | | |
1731 | 1698 | | |
1732 | 1699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
1942 | 1941 | | |
1943 | 1942 | | |
1944 | 1943 | | |
1945 | | - | |
| 1944 | + | |
1946 | 1945 | | |
1947 | 1946 | | |
1948 | 1947 | | |
1949 | | - | |
1950 | | - | |
1951 | | - | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
1955 | | - | |
| 1948 | + | |
1956 | 1949 | | |
1957 | 1950 | | |
1958 | 1951 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | 80 | | |
82 | 81 | | |
83 | 82 | | |
| |||
2392 | 2391 | | |
2393 | 2392 | | |
2394 | 2393 | | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
2395 | 2401 | | |
2396 | 2402 | | |
2397 | 2403 | | |
| |||
0 commit comments