forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9effc46
committed
Repair ALTER EXTENSION ... SET SCHEMA.
It turns out that we broke this in commite5bc945, becausethe code was assuming that no dependent types would appearamong the extension's direct dependencies, and now they do.This isn't terribly hard to fix: just skip dependent types,expecting that we will recurse to them when we process the parentobject (which should also be among the direct dependencies).But a little bit of refactoring is needed so that we can avoidduplicating logic about what is a dependent type.Although there is some testing of ALTER EXTENSION SET SCHEMA,it failed to cover interesting cases, so add more tests.Discussion:https://postgr.es/m/930191.1715205151@sss.pgh.pa.us1 parentd82ab9f commit9effc46
File tree
11 files changed
+141
-27
lines changed- src
- backend/commands
- include/commands
- test/modules/test_extensions
- expected
- sql
11 files changed
+141
-27
lines changedLines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
598 | 598 |
| |
599 | 599 |
| |
600 | 600 |
| |
601 |
| - | |
| 601 | + | |
| 602 | + | |
602 | 603 |
| |
603 | 604 |
| |
604 |
| - | |
605 |
| - | |
606 |
| - | |
607 |
| - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
608 | 608 |
| |
609 | 609 |
| |
610 |
| - | |
| 610 | + | |
611 | 611 |
| |
612 | 612 |
| |
613 | 613 |
| |
| |||
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
634 |
| - | |
| 634 | + | |
635 | 635 |
| |
636 | 636 |
| |
637 | 637 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2940 | 2940 |
| |
2941 | 2941 |
| |
2942 | 2942 |
| |
2943 |
| - | |
| 2943 | + | |
2944 | 2944 |
| |
2945 | 2945 |
| |
2946 | 2946 |
| |
|
Lines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
18017 | 18017 |
| |
18018 | 18018 |
| |
18019 | 18019 |
| |
18020 |
| - | |
18021 |
| - | |
| 18020 | + | |
| 18021 | + | |
| 18022 | + | |
| 18023 | + | |
| 18024 | + | |
18022 | 18025 |
| |
18023 | 18026 |
| |
18024 | 18027 |
| |
|
Lines changed: 53 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4068 | 4068 |
| |
4069 | 4069 |
| |
4070 | 4070 |
| |
4071 |
| - | |
| 4071 | + | |
4072 | 4072 |
| |
4073 | 4073 |
| |
4074 | 4074 |
| |
| |||
4079 | 4079 |
| |
4080 | 4080 |
| |
4081 | 4081 |
| |
4082 |
| - | |
| 4082 | + | |
4083 | 4083 |
| |
4084 | 4084 |
| |
4085 | 4085 |
| |
| |||
4090 | 4090 |
| |
4091 | 4091 |
| |
4092 | 4092 |
| |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
| 4096 | + | |
| 4097 | + | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
4093 | 4105 |
| |
4094 |
| - | |
| 4106 | + | |
| 4107 | + | |
4095 | 4108 |
| |
4096 | 4109 |
| |
4097 | 4110 |
| |
| |||
4102 | 4115 |
| |
4103 | 4116 |
| |
4104 | 4117 |
| |
| 4118 | + | |
| 4119 | + | |
| 4120 | + | |
4105 | 4121 |
| |
4106 | 4122 |
| |
4107 | 4123 |
| |
4108 | 4124 |
| |
4109 | 4125 |
| |
4110 | 4126 |
| |
| 4127 | + | |
4111 | 4128 |
| |
4112 | 4129 |
| |
4113 |
| - | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
4114 | 4135 |
| |
4115 | 4136 |
| |
4116 | 4137 |
| |
| |||
4122 | 4143 |
| |
4123 | 4144 |
| |
4124 | 4145 |
| |
| 4146 | + | |
| 4147 | + | |
4125 | 4148 |
| |
4126 | 4149 |
| |
4127 |
| - | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
4128 | 4154 |
| |
4129 |
| - | |
| 4155 | + | |
4130 | 4156 |
| |
4131 | 4157 |
| |
4132 | 4158 |
| |
4133 | 4159 |
| |
| 4160 | + | |
4134 | 4161 |
| |
4135 | 4162 |
| |
4136 | 4163 |
| |
| |||
4185 | 4212 |
| |
4186 | 4213 |
| |
4187 | 4214 |
| |
4188 |
| - | |
4189 |
| - | |
4190 |
| - | |
4191 |
| - | |
4192 |
| - | |
4193 |
| - | |
4194 |
| - | |
4195 |
| - | |
4196 |
| - | |
| 4215 | + | |
| 4216 | + | |
| 4217 | + | |
| 4218 | + | |
| 4219 | + | |
| 4220 | + | |
| 4221 | + | |
| 4222 | + | |
| 4223 | + | |
| 4224 | + | |
| 4225 | + | |
| 4226 | + | |
| 4227 | + | |
| 4228 | + | |
| 4229 | + | |
4197 | 4230 |
| |
4198 | 4231 |
| |
4199 | 4232 |
| |
| |||
4260 | 4293 |
| |
4261 | 4294 |
| |
4262 | 4295 |
| |
4263 |
| - | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
4264 | 4301 |
| |
4265 | 4302 |
| |
4266 | 4303 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
50 | 50 |
| |
51 | 51 |
| |
52 | 52 |
| |
53 |
| - | |
| 53 | + | |
| 54 | + | |
54 | 55 |
| |
55 | 56 |
| |
| 57 | + | |
56 | 58 |
| |
57 | 59 |
| |
58 | 60 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| 11 | + | |
11 | 12 |
| |
12 | 13 |
| |
13 | 14 |
| |
| |||
19 | 20 |
| |
20 | 21 |
| |
21 | 22 |
| |
| 23 | + | |
22 | 24 |
| |
23 | 25 |
| |
24 | 26 |
| |
|
Lines changed: 38 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
464 | 464 |
| |
465 | 465 |
| |
466 | 466 |
| |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
467 | 505 |
| |
468 | 506 |
| |
469 | 507 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
| 43 | + | |
| 44 | + | |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
|
Lines changed: 10 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
232 | 232 |
| |
233 | 233 |
| |
234 | 234 |
| |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
235 | 245 |
| |
236 | 246 |
| |
237 | 247 |
| |
|
Lines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + |
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + |
0 commit comments
Comments
(0)