forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b26be8
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 parenta207b85 commit8b26be8
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 | |
---|---|---|---|
| |||
16341 | 16341 |
| |
16342 | 16342 |
| |
16343 | 16343 |
| |
| 16344 | + | |
| 16345 | + | |
| 16346 | + | |
| 16347 | + | |
| 16348 | + | |
| 16349 | + | |
| 16350 | + | |
| 16351 | + | |
| 16352 | + | |
| 16353 | + | |
| 16354 | + | |
| 16355 | + | |
| 16356 | + | |
| 16357 | + | |
| 16358 | + | |
| 16359 | + | |
16344 | 16360 |
| |
16345 | 16361 |
| |
16346 | 16362 |
| |
| |||
16917 | 16933 |
| |
16918 | 16934 |
| |
16919 | 16935 |
| |
| 16936 | + | |
| 16937 | + | |
| 16938 | + | |
| 16939 | + | |
| 16940 | + | |
| 16941 | + | |
| 16942 | + | |
| 16943 | + | |
| 16944 | + | |
| 16945 | + | |
| 16946 | + | |
| 16947 | + | |
| 16948 | + | |
| 16949 | + | |
| 16950 | + | |
| 16951 | + | |
| 16952 | + | |
| 16953 | + | |
| 16954 | + | |
16920 | 16955 |
| |
16921 | 16956 |
| |
16922 | 16957 |
| |
|
Lines changed: 20 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4279 | 4279 |
| |
4280 | 4280 |
| |
4281 | 4281 |
| |
| 4282 | + | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
| 4298 | + | |
| 4299 | + | |
| 4300 | + | |
| 4301 | + |
Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2872 | 2872 |
| |
2873 | 2873 |
| |
2874 | 2874 |
| |
| 2875 | + | |
| 2876 | + | |
| 2877 | + | |
| 2878 | + | |
| 2879 | + | |
| 2880 | + | |
| 2881 | + | |
| 2882 | + | |
| 2883 | + | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
| 2892 | + | |
| 2893 | + |
0 commit comments
Comments
(0)