Re: Increasing parallelism of queries while using file fdw and partitions

Поиск
Список
Период
Сортировка
От Patrick Mulrooney
Тема Re: Increasing parallelism of queries while using file fdw and partitions
Дата
Msg-id D69CA851-AD09-48EE-A51C-13DC2032ED0D@gmail.com
обсуждение исходный текст
Ответ на Re: Increasing parallelism of queries while using file fdw andpartitions  (Justin Pryzby <pryzby@telsasoft.com>)
Список pgsql-performance
Justin,

Thanks for the idea. I pulled down the source for multicorn and added that to it. I do not see parallel queries in the
analyzeoutput (unless I force it and then it only gets one worker), but it does look like it is reading more than one
fileat once if I go with a non-partitioned table that looks at all the files. Not any better if I have the table split
upinto partitions.  

So it’s better, but still curious if this would work with partitions.

Thanks again.

Pat

> On Dec 18, 2018, at 22:51, Justin Pryzby <pryzby@telsasoft.com> wrote:
>
>> On Tue, Dec 18, 2018 at 08:39:36PM -0800, Patrick Mulrooney wrote:
>> Wondering if anyone had any thoughts on how to tweak my setup to get it to
>> read many files at once instead of one at a time when using file fdw and
>> partitions.
>
> I found this:
>
> https://www.postgresql.org/docs/current/parallel-safety.html
> |The following operations are always parallel restricted.
> |Scans of foreign tables, unless the foreign data wrapper has an IsForeignScanParallelSafe API which indicates
otherwise.
>
> https://github.com/ergo70/vcf_fdw/blob/master/vcf_fdw/__init__.py
> => has no such API marker, since it's couple years old, same as multicorn.
>
> Justin


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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: Increasing parallelism of queries while using file fdw andpartitions
Следующее
От: Andrew Gierth
Дата:
Сообщение: Re: Why Postgres doesn't use TID scan?