From: | "Constantin S(dot) Pan" <kvapen(at)gmail(dot)com> |
---|---|
To: | Dmitry Ivanov <d(dot)ivanov(at)postgrespro(dot)ru>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [WIP] speeding up GIN build with parallel workers |
Date: | 2016-03-23 02:57:37 |
Message-ID: | 20160323055737.3f51ee0c@monster |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, 18 Mar 2016 20:40:16 +0300
Dmitry Ivanov <d(dot)ivanov(at)postgrespro(dot)ru> wrote:
> - Currently there's no documentation regarding parallel gin build
> feature and provided GUC variables.
> You could replace direct access to 'rd_id' field with the
> RelationGetRelid macro.
> Parameter 'r' is unused, you could remove it.
> Some of the functions and pieces of code that you've added do not
> comply to the formatting conventions, e. g.
On Fri, 18 Mar 2016 11:18:46 -0400
Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> Strong +1. The pool of background workers is necessarily quite
> limited and you can't just gobble them up. I'm not saying that it's
> absolutely essential that the leader can also participate, but saying
> that 1 active leader + 1 worker is only 2% faster than 1 passive
> leader + 2 workers is not comparing apples to apples.
On Fri, 18 Mar 2016 09:12:59 +0530
Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> If I understand the above data correctly, then it seems to indicate
> that majority of the work is done in processing the data, so I think
> it should be better if master and worker both can work together.
Thank you for the support and feedback! Fixed all of these in the new
version. Also added new queries to 'gin' regression test, which
immediately helped me catch one silly bug. The new patch is
attached.
Regards,
Constantin S. Pan
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Attachment | Content-Type | Size |
---|---|---|
pgin-6.patch | text/x-patch | 29.1 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2016-03-23 02:57:58 | Re: multivariate statistics v14 |
Previous Message | Etsuro Fujita | 2016-03-23 02:50:48 | Re: Odd system-column handling in postgres_fdw join pushdown patch |