parallel foreign scan

Поиск
Список
Период
Сортировка
От Manuel Kniep
Тема parallel foreign scan
Дата
Msg-id D84E3D72-2E83-482B-8EF8-D25F93F1CEA8@web.de
обсуждение исходный текст
Ответы Re: parallel foreign scan  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Список pgsql-hackers
Dear hackers,

I’m working on a foreign database wrapper for Kafka [1]
Now I am trying to make it parallel aware. Following 
the documentation [2]
However it seems that I can’t make it use more than a
single worker with force_parallel_mode = on.

I wonder if I need to do more than just implementing the
needed callback function to benefit from multiple workers.

Looking at create_foreignscan_path in path_nodes.c
I found that the ForeignPath seems to always set

pathnode->path.parallel_aware = false;
pathnode->path.parallel_safe = rel->consider_parallel;
pathnode->path.parallel_workers = 0;

Do I need so set these in my GetForeignPaths callback manually?

Is there anything else I need to do?

Thanks

Manuel

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PROPOSAL] Shared Ispell dictionaries
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Postgres 11 release notes