Re: Inefficiency in parallel pg_restore with many tables
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Inefficiency in parallel pg_restore with many tables |
| Дата | |
| Msg-id | 3031359.1694649699@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Inefficiency in parallel pg_restore with many tables (Nathan Bossart <nathandbossart@gmail.com>) |
| Ответы |
Re: Inefficiency in parallel pg_restore with many tables
|
| Список | pgsql-hackers |
Nathan Bossart <nathandbossart@gmail.com> writes:
> Upon closer inspection, I found a rather nasty problem. The qsort
> comparator expects a TocEntry **, but the binaryheap comparator expects a
> TocEntry *, and we simply pass the arguments through to the qsort
> comparator. In v9, I added the requisite ampersands.
Ooops :-(
> I'm surprised this
> worked at all.
Probably it was not sorting things appropriately. Might be worth adding
some test scaffolding to check that bigger tasks are chosen before
smaller ones.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера