Re: utility commands benefiting from parallel plan

From: Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>
Subject: Re: utility commands benefiting from parallel plan
Date: 2017-03-16 00:55:08
Views: Raw Message | Whole Thread | Download mbox
Lists: pgsql-hackers

On Tue, Feb 28, 2017 at 12:48 PM, Haribabu Kommi <kommi(dot)haribabu(at)gmail(dot)com>

> On Sat, Feb 25, 2017 at 3:21 AM, Robert Haas <robertmhaas(at)gmail(dot)com>
> wrote:
>> On Fri, Feb 24, 2017 at 11:43 AM, Haribabu Kommi
>> <kommi(dot)haribabu(at)gmail(dot)com> wrote:
>> > Here I attached an implementation patch that allows
>> > utility statements that have queries underneath such as
>> > and REFRESH commands to benefit from parallel plan.
>> >
>> > These write operations not performed concurrently by the
>> > parallel workers, but the underlying query that is used by
>> > these operations are eligible for parallel plans.
>> >
>> > Currently the write operations are implemented for the
>> > tuple dest types DestIntoRel and DestTransientRel.
>> >
>> > Currently I am evaluating other write operations that can
>> > benefit with parallelism without side effects in enabling them.
>> >
>> > comments?
>> I think a lot more work than this will be needed. See:
>> 1vU6H8oVyD=zyuLvRnJqTN==fvnhg(at)mail(dot)gmail(dot)com
>> ...and the discussion which followed.
> Thanks for the link.
> Yes, it needs more work to support parallelism even for
> queries that involved in write operations like INSERT,
> DELETE and UPDATE commands.

This patch is marked as "returned with feedback" in the ongoing

The proposed DML write operations patch is having good number
of limitations like triggers and etc, but the utility writer operations
patch is in a good shape in my view to start supporting write operations.
This is useful for materialized view while refreshing the data.

Do you find any problems/missings in supporting parallel plan for utility
commands with the attached update patch? Or is it something
like supporting all write operations at once?

Hari Babu
Fujitsu Australia

Attachment Content-Type Size
0001_utility_write_using_parallel_2.patch application/octet-stream 11.1 KB

In response to


Browse pgsql-hackers by date

  From Date Subject
Next Message Haribabu Kommi 2017-03-16 00:57:12 Re: [REVIEW] macaddr 64 bit (EUI-64) datatype support
Previous Message Andres Freund 2017-03-16 00:47:20 Re: WIP: Faster Expression Processing v4