Commit 4dea33c
committed
Don't disallow DROP of constraints ONLY on partitioned tables
This restriction seems to have come about due to some fuzzy thinking: in
commit 9139aa1 we were adding a restriction against ADD constraint
ONLY on partitioned tables (which is sensible) and apparently we thought
the DROP case had to be symmetrical. However, it isn't, and the
comments about it are mistaken about the effect it would have. Remove
this limitation.
There have been no reports of users bothered by this limitation, so I'm
not backpatching it just yet. We can revisit this decision later, as needed.
Reviewed-by: Amit Langote <amitlangote09@gmail.com>
Discussion: https://postgr.es/m/202409261752.nbvlawkxsttf@alvherre.pgsql
Discussion: https://postgr.es/m/7682253a-6f79-6a92-00aa-267c4c412870@lab.ntt.co.jp
(about commit 9139aa1, previously not registered)1 parent 4c7cd07 commit 4dea33c
File tree
4 files changed
+22
-48
lines changed- doc/src/sgml/ref
- src
- backend/commands
- test/regress
- expected
- sql
4 files changed
+22
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
255 | 257 | | |
256 | 258 | | |
257 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
451 | 450 | | |
452 | 451 | | |
453 | 452 | | |
| |||
4858 | 4857 | | |
4859 | 4858 | | |
4860 | 4859 | | |
4861 | | - | |
4862 | 4860 | | |
4863 | 4861 | | |
4864 | 4862 | | |
| |||
7498 | 7496 | | |
7499 | 7497 | | |
7500 | 7498 | | |
7501 | | - | |
7502 | | - | |
7503 | | - | |
7504 | | - | |
7505 | | - | |
7506 | | - | |
7507 | | - | |
7508 | | - | |
7509 | | - | |
7510 | | - | |
7511 | | - | |
7512 | | - | |
7513 | | - | |
7514 | | - | |
7515 | | - | |
7516 | | - | |
7517 | | - | |
7518 | | - | |
7519 | | - | |
7520 | | - | |
7521 | | - | |
7522 | | - | |
7523 | | - | |
| 7499 | + | |
7524 | 7500 | | |
7525 | 7501 | | |
7526 | 7502 | | |
| |||
12713 | 12689 | | |
12714 | 12690 | | |
12715 | 12691 | | |
12716 | | - | |
12717 | | - | |
12718 | | - | |
12719 | | - | |
12720 | | - | |
12721 | | - | |
12722 | | - | |
12723 | | - | |
12724 | | - | |
12725 | | - | |
12726 | | - | |
12727 | | - | |
12728 | 12692 | | |
12729 | 12693 | | |
12730 | 12694 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4401 | 4401 | | |
4402 | 4402 | | |
4403 | 4403 | | |
4404 | | - | |
| 4404 | + | |
4405 | 4405 | | |
4406 | 4406 | | |
4407 | 4407 | | |
4408 | 4408 | | |
4409 | 4409 | | |
4410 | 4410 | | |
4411 | 4411 | | |
| 4412 | + | |
4412 | 4413 | | |
4413 | 4414 | | |
4414 | | - | |
4415 | | - | |
4416 | 4415 | | |
4417 | 4416 | | |
4418 | | - | |
4419 | | - | |
| 4417 | + | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
| 4421 | + | |
| 4422 | + | |
| 4423 | + | |
| 4424 | + | |
| 4425 | + | |
| 4426 | + | |
| 4427 | + | |
| 4428 | + | |
4420 | 4429 | | |
4421 | 4430 | | |
4422 | 4431 | | |
4423 | 4432 | | |
4424 | | - | |
4425 | | - | |
4426 | 4433 | | |
4427 | 4434 | | |
4428 | 4435 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2815 | 2815 | | |
2816 | 2816 | | |
2817 | 2817 | | |
2818 | | - | |
| 2818 | + | |
2819 | 2819 | | |
2820 | 2820 | | |
2821 | 2821 | | |
2822 | 2822 | | |
| 2823 | + | |
2823 | 2824 | | |
2824 | 2825 | | |
2825 | 2826 | | |
2826 | 2827 | | |
| 2828 | + | |
| 2829 | + | |
2827 | 2830 | | |
2828 | 2831 | | |
2829 | 2832 | | |
2830 | 2833 | | |
2831 | 2834 | | |
2832 | | - | |
2833 | | - | |
2834 | 2835 | | |
2835 | 2836 | | |
2836 | 2837 | | |
| |||
0 commit comments