forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9ef86cd
committed
Mark index-constraint comments with correct dependency in pg_dump.
When there's a comment on an index that was created with UNIQUE or PRIMARYKEY constraint syntax, we need to label the comment as depending on theconstraint not the index, since only the constraint object actually appearsin the dump. This incorrect dependency can lead to parallel pg_restoretrying to restore the comment before the index has been created, per bug#8257 from Lloyd Albin.This patch fixes pg_dump to produce the right dependency in dumps madein the future. Usually we also try to hack pg_restore to work aroundbogus dependencies, so that existing (wrong) dumps can still be restored inparallel mode; but that doesn't seem practical here since there's no easyway to relate the constraint dump entry to the comment after the fact.Andres Freund1 parenta099482 commit9ef86cd
1 file changed
+8
-3
lines changedLines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13490 | 13490 |
| |
13491 | 13491 |
| |
13492 | 13492 |
| |
| 13493 | + | |
13493 | 13494 |
| |
13494 | 13495 |
| |
13495 | 13496 |
| |
| |||
13507 | 13508 |
| |
13508 | 13509 |
| |
13509 | 13510 |
| |
13510 |
| - | |
| 13511 | + | |
| 13512 | + | |
| 13513 | + | |
13511 | 13514 |
| |
13512 |
| - | |
| 13515 | + | |
13513 | 13516 |
| |
13514 | 13517 |
| |
13515 | 13518 |
| |
| |||
13551 | 13554 |
| |
13552 | 13555 |
| |
13553 | 13556 |
| |
13554 |
| - | |
| 13557 | + | |
| 13558 | + | |
| 13559 | + | |
13555 | 13560 |
| |
13556 | 13561 |
| |
13557 | 13562 |
| |
|
0 commit comments
Comments
(0)