Re: Parallel Foreign Scans - need advice

Поиск
Список
Период
Сортировка
Искать
От
Korry Douglas
Тема
Re: Parallel Foreign Scans - need advice
Дата
в 17:45:45
Msg-id
0CC4C22A-AFA6-4045-B7D5-ADA222D5C098@me.com
Ответ на
Список
Дерево обсуждения
Parallel Foreign Scans - need advice Korry Douglas <korry@me.com>
Re: Parallel Foreign Scans - need advice Andres Freund <andres@anarazel.de>
Re: Parallel Foreign Scans - need advice Korry Douglas <korry@me.com>
Re: Parallel Foreign Scans - need advice Andres Freund <andres@anarazel.de>
Re: Parallel Foreign Scans - need advice Korry Douglas <korry@me.com>
Re: Parallel Foreign Scans - need advice Thomas Munro <thomas.munro@gmail.com>
Re: Parallel Foreign Scans - need advice Korry Douglas <korry@me.com>
Re: Parallel Foreign Scans - need advice Thomas Munro <thomas.munro@gmail.com>

>> But, nworkers_launched is always set to 0 in
>> InitializeDSMForeignScan(), so that won’t work.  Any other ideas?
> 
> At that state it's simply not yet known how many workers will be
> actually launched (they might not start successfully or such). Why do
> you need to know it there and not later?
> 
> - Andres

I need to know at some point *before* I actually start scanning.  The ParallelContext pointer is only available in EstimateDSMForeignScan(), InitializeDSMForeignScan(), and ReInitializeDSMForeignScan().  

If there is some other way to discover the actual worker count, I’m open to that.  The three functions above are not particularly helpful to me so I’m happy to look somewhere else.

         — Korry

В списке pgsql-hackers по дате отправления
От: Peter Eisentraut
Дата:
От: Tom Lane
Дата:
Сообщение: Re: New EXPLAIN option: ALL
FAQ