forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd6f1e16
committed
Invalidate partitions of table being attached/detached
Failing to do that, any direct inserts/updates of those partitionswould fail to enforce the correct constraint, that is, one thatconsiders the new partition constraint of their parent table.Backpatch to 10.Reported by: Hou Zhijie <houzj.fnst@fujitsu.com>Author: Amit Langote <amitlangote09@gmail.com>Author: Álvaro Herrera <alvherre@alvh.no-ip.org>Reviewed-by: Nitin Jadhav <nitinjadhavpostgres@gmail.com>Reviewed-by: Pavel Borisov <pashkin.elfe@gmail.com>Discussion:https://postgr.es/m/OS3PR01MB5718DA1C4609A25186D1FBF194089%40OS3PR01MB5718.jpnprd01.prod.outlook.com1 parentfc0f3b4 commitd6f1e16
File tree
3 files changed
+74
-0
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+74
-0
lines changedLines changed: 35 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17460 | 17460 |
| |
17461 | 17461 |
| |
17462 | 17462 |
| |
| 17463 | + | |
| 17464 | + | |
| 17465 | + | |
| 17466 | + | |
| 17467 | + | |
| 17468 | + | |
| 17469 | + | |
| 17470 | + | |
| 17471 | + | |
| 17472 | + | |
| 17473 | + | |
| 17474 | + | |
| 17475 | + | |
| 17476 | + | |
| 17477 | + | |
| 17478 | + | |
17463 | 17479 |
| |
17464 | 17480 |
| |
17465 | 17481 |
| |
| |||
18150 | 18166 |
| |
18151 | 18167 |
| |
18152 | 18168 |
| |
| 18169 | + | |
| 18170 | + | |
| 18171 | + | |
| 18172 | + | |
| 18173 | + | |
| 18174 | + | |
| 18175 | + | |
| 18176 | + | |
| 18177 | + | |
| 18178 | + | |
| 18179 | + | |
| 18180 | + | |
| 18181 | + | |
| 18182 | + | |
| 18183 | + | |
| 18184 | + | |
| 18185 | + | |
| 18186 | + | |
| 18187 | + | |
18153 | 18188 |
| |
18154 | 18189 |
| |
18155 | 18190 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4489 | 4489 |
| |
4490 | 4490 |
| |
4491 | 4491 |
| |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + |
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2940 | 2940 |
| |
2941 | 2941 |
| |
2942 | 2942 |
| |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
| 2948 | + | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + |
0 commit comments
Comments
(0)