forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit72d0642
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 parent5b353aa commit72d0642
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 | |
---|---|---|---|
| |||
17307 | 17307 |
| |
17308 | 17308 |
| |
17309 | 17309 |
| |
| 17310 | + | |
| 17311 | + | |
| 17312 | + | |
| 17313 | + | |
| 17314 | + | |
| 17315 | + | |
| 17316 | + | |
| 17317 | + | |
| 17318 | + | |
| 17319 | + | |
| 17320 | + | |
| 17321 | + | |
| 17322 | + | |
| 17323 | + | |
| 17324 | + | |
| 17325 | + | |
17310 | 17326 |
| |
17311 | 17327 |
| |
17312 | 17328 |
| |
| |||
17997 | 18013 |
| |
17998 | 18014 |
| |
17999 | 18015 |
| |
| 18016 | + | |
| 18017 | + | |
| 18018 | + | |
| 18019 | + | |
| 18020 | + | |
| 18021 | + | |
| 18022 | + | |
| 18023 | + | |
| 18024 | + | |
| 18025 | + | |
| 18026 | + | |
| 18027 | + | |
| 18028 | + | |
| 18029 | + | |
| 18030 | + | |
| 18031 | + | |
| 18032 | + | |
| 18033 | + | |
| 18034 | + | |
18000 | 18035 |
| |
18001 | 18036 |
| |
18002 | 18037 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4496 | 4496 |
| |
4497 | 4497 |
| |
4498 | 4498 |
| |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
| 4504 | + | |
| 4505 | + | |
| 4506 | + | |
| 4507 | + | |
| 4508 | + | |
| 4509 | + | |
| 4510 | + | |
| 4511 | + | |
| 4512 | + | |
| 4513 | + | |
| 4514 | + | |
| 4515 | + | |
| 4516 | + | |
| 4517 | + | |
| 4518 | + |
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2949 | 2949 |
| |
2950 | 2950 |
| |
2951 | 2951 |
| |
| 2952 | + | |
| 2953 | + | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + |
0 commit comments
Comments
(0)