Re: postgresql 9.0.3: parallel restore fails with comments on indices
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: postgresql 9.0.3: parallel restore fails with comments on indices |
| Дата | |
| Msg-id | 10032.1298050513@sss.pgh.pa.us обсуждение |
| Ответ на | postgresql 9.0.3: parallel restore fails with comments on indices (Arnd Hannemann <arnd.hannemann@credativ.de>) |
| Список | pgsql-bugs |
Arnd Hannemann <arnd.hannemann@credativ.de> writes:
> if pg_restore is used with -jN it fails if the dump has comments on indices.
Reproduced here, thanks for the report!
> The problem seems to be a false assumption in pg_backup_archiver.c:
> ...
> Comments are in SECTION_NONE so they get restored here regardless of dependencies, which is obviously wrong
Yeah, that seems to need a bit more thought. It's intentional that
comments that are in the PRE_DATA area get restored immediately, so as
not to eat all the overhead of a worker subprocess for them. But we
can't do it that way for comments intermixed with POST_DATA items.
I think the simplest fix is to allow this loop to process SECTION_NONE
items only as long as it hasn't skipped any prior items.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера