Re: Postgres 11 release notes

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Postgres 11 release notes
Date: 2018-05-16 04:25:05
Message-ID: CAA4eK1K17rjQmeW=L7K9j9RMXf83U8jaTM0ep6Ww-SqHp7qTnQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

On Wed, May 16, 2018 at 12:17 AM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> On Tue, May 15, 2018 at 08:45:07AM +0530, Amit Kapila wrote:
>> No, it is not like that. We divide the scan among workers and each
>> worker should perform projection of the rows it scanned (after
>> applying filter). Now, if the expensive functions are part of target
>> lists, then we can push the computation of expensive functions (as
>> part of target list) in workers which will divide the work.
>>
>> > Really? Do
>> > we run each column in its own worker or do we split the result set into
>> > parts and run those in parallel? How do we know, just the function call
>> > costs?
>> >
>>
>> The function's cost can be determined via pg_proc->procost. For this
>> particular case, you can refer the call graph -
>> create_pathtarget->set_pathtarget_cost_width->cost_qual_eval_node->cost_qual_eval_walker->get_func_cost
>>
>> > I can admit I never saw that coming.
>> >
>>
>> I think the use case becomes interesting with parallel query because
>> now you can divide such cost among workers.
>>
>> Feel free to ask more questions if above doesn't clarify the usage of
>> these features.
>
> OK, I have added the following release note item for both of these:
>
> 2017-11-16 [e89a71fb4] Pass InitPlan values to workers via Gather (Merge).
> 2018-03-29 [3f90ec859] Postpone generate_gather_paths for topmost scan/join rel
> 2018-03-29 [11cf92f6e] Rewrite the code that applies scan/join targets to paths
>
> Allow single-evaluation queries, e.g. <literal>FROM</literal>
> clause queries, and functions in the target list to be
> parallelized (Amit Kapila, Robert Haas)
>

Sorry, but it is not clear to me what you intend to say by "e.g.
<literal>FROM</literal> clause queries"? What I could imagine is
something like "e.g. queries in <literal>WHERE</literal> clause that
return aggregate value"

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2018-05-16 07:15:33 Re: NaNs in numeric_power (was Re: Postgres 11 release notes)
Previous Message Michael Paquier 2018-05-16 04:22:45 Re: Postgres 11 release notes

Browse pgsql-www by date

  From Date Subject
Next Message Dean Rasheed 2018-05-16 07:15:33 Re: NaNs in numeric_power (was Re: Postgres 11 release notes)
Previous Message Michael Paquier 2018-05-16 04:22:45 Re: Postgres 11 release notes