Re: [HACKERS] Parallel Index-only scan

Поиск
Список
Период
Сортировка
От Rafia Sabih
Тема Re: [HACKERS] Parallel Index-only scan
Дата
Msg-id CAOGQiiOcRh=wVsHWfPTOqmpGLU-Q0zc5YQH8MiQ+9AzJZRuK8g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] Parallel Index-only scan  (Rafia Sabih <rafia.sabih@enterprisedb.com>)
Ответы Re: [HACKERS] Parallel Index-only scan  (tushar <tushar.ahuja@enterprisedb.com>)
Re: [HACKERS] Parallel Index-only scan  (Michael Paquier <michael.paquier@gmail.com>)
Re: [HACKERS] Parallel Index-only scan  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Fri, Jan 13, 2017 at 2:19 PM, Rafia Sabih
<rafia.sabih@enterprisedb.com> wrote:
> On Thu, Jan 12, 2017 at 5:39 PM, Rahila Syed <rahilasyed90@gmail.com> wrote:
>> Hello,
>>
>> On applying the patch on latest master branch and running regression tests
>> following failure occurs.
>> I applied it on latest parallel index scan patches as given in the link
>> above.
>>
>> ***
>> /home/rahila/postgres/postgres/src/test/regress/expected/select_parallel.out
>> 2017-01-03 14:06:29.122022780 +0530
>> ---
>> /home/rahila/postgres/postgres/src/test/regress/results/select_parallel.out
>> 2017-01-12 14:35:56.652712622 +0530
>> ***************
>> *** 92,103 ****
>>   explain (costs off)
>>     select  sum(parallel_restricted(unique1)) from tenk1
>>     group by(parallel_restricted(unique1));
>> !                      QUERY PLAN
>> ! ----------------------------------------------------
>>    HashAggregate
>>      Group Key: parallel_restricted(unique1)
>> !    ->  Index Only Scan using tenk1_unique1 on tenk1
>> ! (3 rows)
>>
>>   set force_parallel_mode=1;
>>   explain (costs off)
>> --- 92,105 ----
>>   explain (costs off)
>>     select  sum(parallel_restricted(unique1)) from tenk1
>>     group by(parallel_restricted(unique1));
>> !                             QUERY PLAN
>> ! -------------------------------------------------------------------
>>    HashAggregate
>>      Group Key: parallel_restricted(unique1)
>> !    ->  Gather
>> !          Workers Planned: 4
>> !          ->  Parallel Index Only Scan using tenk1_unique1 on tenk1
>> ! (5 rows)
>>
>> IIUC, parallel operation being performed here is fine as parallel restricted
>> function occurs above Gather node
>> and just the expected output needs to be changed.
>>
>
> True, fixed it, please find the attached file for the latest version.
>

Please find the attached file rebased patch of parallel index-only
scan on the latest Parallel index-scan patch [1].

[1] https://www.postgresql.org/message-id/CAA4eK1L-gb0Fum3mQN4c5PWJXNE7xs7pzwMDWsrDYLucKqvJ2A%40mail.gmail.com
-- 
Regards,
Rafia Sabih
EnterpriseDB: http://www.enterprisedb.com/

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

Вложения

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

Предыдущее
От: Antonin Houska
Дата:
Сообщение: Re: [HACKERS] PoC: Grouped base relation
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: [HACKERS] Causal reads take II