pgsql: Mark index-constraint comments with correct dependency in pg_dum
В списке pgsql-committers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | pgsql: Mark index-constraint comments with correct dependency in pg_dum |
| Дата | |
| Msg-id | E1UsGQ7-00077b-QF@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Mark index-constraint comments with correct dependency in pg_dump. When there's a comment on an index that was created with UNIQUE or PRIMARY KEY constraint syntax, we need to label the comment as depending on the constraint not the index, since only the constraint object actually appears in the dump. This incorrect dependency can lead to parallel pg_restore trying 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 made in the future. Usually we also try to hack pg_restore to work around bogus dependencies, so that existing (wrong) dumps can still be restored in parallel mode; but that doesn't seem practical here since there's no easy way to relate the constraint dump entry to the comment after the fact. Andres Freund Branch ------ REL8_4_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/17abf275f070d17fbb8d8dff8f62373e2c6bf9fd Modified Files -------------- src/bin/pg_dump/pg_dump.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера