Re: Parallel execution and prepared statements

Поиск
Список
Период
Сортировка
От Amit Kapila
Тема Re: Parallel execution and prepared statements
Дата
Msg-id CAA4eK1JYGeiYN1ym7-QAX93rRufCJmwJ9pXWyugXW6bu7SeuUA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Parallel execution and prepared statements  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: Parallel execution and prepared statements  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Wed, Nov 30, 2016 at 11:57 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> On Tue, Nov 29, 2016 at 6:24 AM, Amit Kapila <amit.kapila16@gmail.com> wrote:
>>
>> Robert, do you have any better ideas for this problem?
>
> Not really.  I think your prepared_stmt_parallel_query_v2.patch is
> probably the best approach proposed so far, but I wonder why we need
> to include DestCopyOut and DestTupleStore.  DestIntoRel and
> DestTransientRel both write to an actual relation, which is a problem
> for parallel mode, but I think the others don't.
>

I have tried to restrict all the non-readonly operation modes or modes
where parallelism might not make sense like DestTupleStore.  If we
want to just prohibit the cases where it can fail now, then I think
prohibiting only DestIntoRel should be sufficient because that is a
case where the user is allowed to do DDL for an already prepared read
only statement like Create Table AS .. EXECUTE.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



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

Предыдущее
От: Tobias Bussmann
Дата:
Сообщение: Re: Fix typo in ecpg.sgml
Следующее
От: Ashutosh Bapat
Дата:
Сообщение: Re: [RFC] Should we fix postmaster to avoid slow shutdown?