forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit24614a9
committed
Upgrade ALTER TABLE DROP COLUMN so that it can drop an OID column, and
remove separate implementation of ALTER TABLE SET WITHOUT OIDS in favorof doing a regular DROP. Also, cause CREATE TABLE to account completelycorrectly for the inheritance status of the OID column. This fixesproblems with dropping OID columns that have dependencies, as noted byChristopher Kings-Lynne, as well as making sure that you can't drop anOID column that was inherited from a parent.1 parent446b547 commit24614a9
File tree
11 files changed
+151
-167
lines changed- doc/src/sgml/ref
- src
- backend
- bootstrap
- catalog
- commands
- executor
- tcop
- include
- catalog
- commands
- test/regress
- expected
- sql
11 files changed
+151
-167
lines changedLines changed: 6 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
150 | 150 |
| |
151 | 151 |
| |
152 | 152 |
| |
153 |
| - | |
154 |
| - | |
155 |
| - | |
156 |
| - | |
157 |
| - | |
158 |
| - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
159 | 158 |
| |
160 | 159 |
| |
161 | 160 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 |
| - | |
| 12 | + | |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
| 200 | + | |
| 201 | + | |
200 | 202 |
| |
201 | 203 |
| |
202 | 204 |
| |
|
Lines changed: 52 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
458 | 458 |
| |
459 | 459 |
| |
460 | 460 |
| |
461 |
| - | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
462 | 464 |
| |
463 | 465 |
| |
464 | 466 |
| |
| |||
531 | 533 |
| |
532 | 534 |
| |
533 | 535 |
| |
| 536 | + | |
534 | 537 |
| |
535 | 538 |
| |
536 |
| - | |
537 | 539 |
| |
538 | 540 |
| |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
539 | 548 |
| |
540 | 549 |
| |
541 | 550 |
| |
| |||
713 | 722 |
| |
714 | 723 |
| |
715 | 724 |
| |
| 725 | + | |
| 726 | + | |
716 | 727 |
| |
717 | 728 |
| |
718 | 729 |
| |
| |||
786 | 797 |
| |
787 | 798 |
| |
788 | 799 |
| |
789 |
| - | |
| 800 | + | |
| 801 | + | |
790 | 802 |
| |
791 | 803 |
| |
792 | 804 |
| |
| |||
973 | 985 |
| |
974 | 986 |
| |
975 | 987 |
| |
976 |
| - | |
977 |
| - | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
978 | 991 |
| |
979 |
| - | |
980 |
| - | |
981 |
| - | |
982 |
| - | |
983 |
| - | |
984 |
| - | |
985 |
| - | |
986 |
| - | |
987 |
| - | |
988 |
| - | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
989 | 997 |
| |
990 |
| - | |
991 |
| - | |
| 998 | + | |
| 999 | + | |
992 | 1000 |
| |
993 |
| - | |
994 |
| - | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
995 | 1011 |
| |
996 |
| - | |
997 |
| - | |
998 |
| - | |
999 |
| - | |
| 1012 | + | |
| 1013 | + | |
1000 | 1014 |
| |
1001 |
| - | |
| 1015 | + | |
| 1016 | + | |
1002 | 1017 |
| |
1003 |
| - | |
1004 |
| - | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
1005 | 1028 |
| |
1006 | 1029 |
| |
1007 | 1030 |
| |
| |||
1011 | 1034 |
| |
1012 | 1035 |
| |
1013 | 1036 |
| |
1014 |
| - | |
| 1037 | + | |
| 1038 | + | |
1015 | 1039 |
| |
1016 | 1040 |
| |
1017 | 1041 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
501 | 501 |
| |
502 | 502 |
| |
503 | 503 |
| |
| 504 | + | |
| 505 | + | |
504 | 506 |
| |
505 | 507 |
| |
506 | 508 |
| |
|
0 commit comments
Comments
(0)