forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit38921d1
committed
Assign constraint name when cloning FK definition for partitions
This is for example used when attaching a partition to a partitionedtable which includes foreign keys, and in this case the constraint namehas been missing in the data cloned. This could lead to hard crashes,as when validating the foreign key constraint, the constraint name isalways expected. Particularly, when using log_min_messages >= DEBUG1, alog message would be generated with this unassigned constraint name,leading to an assertion failure on HEAD.While on it, rename a variable in ATExecAttachPartition which wasdeclared twice with the same name.Author: Michael PaquierReviewed-by: Álvaro HerreraDiscussion:https://postgr.es/m/20181005042236.GG1629@paquier.xyzBackpatch-through: 111 parent6eb612f commit38921d1
2 files changed
+8
-7
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
| 577 | + | |
577 | 578 |
| |
578 | 579 |
| |
579 | 580 |
| |
|
Lines changed: 7 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14275 | 14275 |
| |
14276 | 14276 |
| |
14277 | 14277 |
| |
14278 |
| - | |
| 14278 | + | |
14279 | 14279 |
| |
14280 | 14280 |
| |
14281 | 14281 |
| |
14282 | 14282 |
| |
14283 |
| - | |
| 14283 | + | |
14284 | 14284 |
| |
14285 | 14285 |
| |
14286 | 14286 |
| |
14287 |
| - | |
| 14287 | + | |
14288 | 14288 |
| |
14289 |
| - | |
14290 |
| - | |
14291 |
| - | |
14292 |
| - | |
| 14289 | + | |
| 14290 | + | |
| 14291 | + | |
| 14292 | + | |
14293 | 14293 |
| |
14294 | 14294 |
| |
14295 | 14295 |
| |
|
0 commit comments
Comments
(0)