Re: Creating a DSA area to provide work space for parallel execution

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Creating a DSA area to provide work space for parallel execution
Дата
Msg-id CAEepm=1KXKe-pVAHMBxJECziJTc_GOTfybkU3H_S9r1nT5QTZQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Creating a DSA area to provide work space for parallel execution  (Dilip Kumar <dilipbalaut@gmail.com>)
Ответы Re: Creating a DSA area to provide work space for parallel execution
Список pgsql-hackers
On Fri, Nov 25, 2016 at 4:32 AM, Dilip Kumar <dilipbalaut@gmail.com> wrote:
> I have one more question,
>
> In V1 we were calling dsa_detach in ExecParallelCleanup and in
> ParallelQueryMain, but it's removed in v2.
>
> Any specific reason ?
> Does this need to be used differently ?
>
>  ExecParallelCleanup(ParallelExecutorInfo *pei)
>  {
> + if (pei->area != NULL)
> + {
> + dsa_detach(pei->area);
> + pei->area = NULL;
> + }
>
> After this changes, I am getting DSM segment leak warning.

Thanks!  I had some chicken-vs-egg problems dealing with cleanup of
DSM segments belonging to DSA areas created inside DSM segments.
Here's a new version to apply on top of dsa-v7.patch.

--
Thomas Munro
http://www.enterprisedb.com

Вложения

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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Dynamic shared memory areas
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: make default TABLESPACE belong to target table.