Re: Asynchronous execution on FDW

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: Asynchronous execution on FDW
Дата
Msg-id 5596F38C.2090900@iki.fi
обсуждение исходный текст
Ответ на Asynchronous execution on FDW  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Ответы Re: Asynchronous execution on FDW  (Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>)
Re: Asynchronous execution on FDW  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On 07/02/2015 08:48 AM, Kyotaro HORIGUCHI wrote:
> - It was a problem when to give the first kick for async exec. It
>    is not in ExecInit phase, and ExecProc phase does not fit,
>    too. An extra phase ExecPreProc or something is too
>    invasive. So I tried "pre-exec callback".
>
>    Any init-node can register callbacks on their turn, then the
>    registerd callbacks are called just before ExecProc phase in
>    executor. The first patch adds functions and structs to enable
>    this.

At a quick glance, I think this has all the same problems as starting 
the execution at ExecInit phase. The correct way to do this is to kick 
off the queries in the first IterateForeignScan() call. You said that 
"ExecProc phase does not fit" - why not?

- Heikki




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: WAL logging problem in 9.4.3?
Следующее
От: Jan de Visser
Дата:
Сообщение: Re: Idea: closing the loop for "pg_ctl reload"