Commit bbba59e
committed
Remove ATT_TABLE for ALTER TABLE ... ATTACH/DETACH
Attempting these commands for a non-partitioned table would result in a
failure when creating the relation in transformPartitionCmd(). This
gives the possibility to throw an error earlier with a much better error
message, thanks to d69a3f4.
The extra test cases are from me. Note that FINALIZE uses a different
subcommand and it had no coverage for its failure path with
non-partitioned tables.
Author: Álvaro Herrera, Michael Paquier
Reviewed-by: Nathan Bossart
Discussion: https://postgr.es/m/[email protected]1 parent 75240f6 commit bbba59e
File tree
3 files changed
+15
-7
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+15
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5107 | 5107 | | |
5108 | 5108 | | |
5109 | 5109 | | |
5110 | | - | |
| 5110 | + | |
5111 | 5111 | | |
5112 | 5112 | | |
5113 | 5113 | | |
5114 | 5114 | | |
5115 | | - | |
5116 | | - | |
| 5115 | + | |
5117 | 5116 | | |
5118 | 5117 | | |
5119 | 5118 | | |
5120 | 5119 | | |
5121 | | - | |
5122 | | - | |
| 5120 | + | |
5123 | 5121 | | |
5124 | 5122 | | |
5125 | 5123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3911 | 3911 | | |
3912 | 3912 | | |
3913 | 3913 | | |
3914 | | - | |
| 3914 | + | |
| 3915 | + | |
3915 | 3916 | | |
3916 | 3917 | | |
3917 | 3918 | | |
| |||
4281 | 4282 | | |
4282 | 4283 | | |
4283 | 4284 | | |
4284 | | - | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
4285 | 4293 | | |
4286 | 4294 | | |
4287 | 4295 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2742 | 2742 | | |
2743 | 2743 | | |
2744 | 2744 | | |
| 2745 | + | |
| 2746 | + | |
2745 | 2747 | | |
2746 | 2748 | | |
2747 | 2749 | | |
| |||
0 commit comments