Re: auto_explain vs. parallel query

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: auto_explain vs. parallel query
Дата
Msg-id CA+TgmoYe1U=yx2N700AaHUz+oYZm_qYc0HS-4Rm9EAe-mEvTjg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: auto_explain vs. parallel query  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Ответы Re: auto_explain vs. parallel query
Список pgsql-hackers
On Tue, Nov 1, 2016 at 10:21 AM, Tomas Vondra
<tomas.vondra@2ndquadrant.com> wrote:
> Clearly we need to pass some information to the worker processes, so that
> they know whether to instrument the query or not. I don't know if there's a
> good non-invasive way to do that from an extension - the easiest way I can
> think of is using a bit of shared memory to pass the "sample query" flag -
> attached is a patch that does that, and it seems to be working fine for me.

Uh, isn't this going to break as soon as there are multiple parallel
queries in process at the same time?

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: auto_explain vs. parallel query
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Proposal for changes to recovery.conf API