forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8cff4f5
committed
Code review for pg_dump's handling of ALTER INDEX ATTACH PARTITION.
Ensure the TOC entry is marked with the correct schema, so that itsname is as unique as the index's is.Fix the dependencies: we want dependencies from this TOC entry to thetwo indexes it depends on, and we don't care (at least not for thispurpose) what order the indexes are created in. Also, add dependencieson the indexes' underlying tables. Those might seem pointless giventhe index dependencies, but they are helpful to cue parallel restoreto avoid running the ATTACH PARTITION in parallel with other DDL onthe same tables.Discussion:https://postgr.es/m/10817.1535494963@sss.pgh.pa.us1 parent42e61c7 commit8cff4f5
2 files changed
+22
-7
lines changedLines changed: 19 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
425 | 425 |
| |
426 | 426 |
| |
427 | 427 |
| |
| 428 | + | |
428 | 429 |
| |
429 | 430 |
| |
430 | 431 |
| |
431 | 432 |
| |
432 |
| - | |
433 |
| - | |
434 |
| - | |
435 |
| - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
436 | 446 |
| |
437 |
| - | |
| 447 | + | |
438 | 448 |
| |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
439 | 453 |
| |
440 | 454 |
| |
441 | 455 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16326 | 16326 |
| |
16327 | 16327 |
| |
16328 | 16328 |
| |
16329 |
| - | |
| 16329 | + | |
16330 | 16330 |
| |
16331 | 16331 |
| |
16332 | 16332 |
| |
16333 | 16333 |
| |
16334 | 16334 |
| |
16335 | 16335 |
| |
16336 |
| - | |
| 16336 | + | |
| 16337 | + | |
16337 | 16338 |
| |
16338 | 16339 |
| |
16339 | 16340 |
| |
|
0 commit comments
Comments
(0)