Minor code improvement to postgresGetForeignJoinPaths

Поиск
Список
Период
Сортировка
Искать

Minor code improvement to postgresGetForeignJoinPaths

От:
Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
Дата:
Вложения:
Hi,

The last argument of create_foreignscan_path called by postgresGetForeignJoinPaths is
set to NULL, but it would be suitable to set it to NIL because the argument type is List.

Please find attached a patch.

Tatsuro Yamada
NTT Open Source Software Center

Re: Minor code improvement to postgresGetForeignJoinPaths

От:
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
Дата:
Вложения:
On Mon, Oct 24, 2016 at 7:56 AM, Tatsuro Yamada
 wrote:
> Hi,
>
> The last argument of create_foreignscan_path called by postgresGetForeignJoinPaths is
> set to NULL, but it would be suitable to set it to NIL because the argument type is List.
>
> Please find attached a patch.
>
You are right. Every call except that one is using NIL, so better to
fix it. The pattern was repeated in the recent aggregate pushdown
support. Here's patch to fix create_foreignscan_path() call in
add_foreign_grouping_paths() as well.

-- 
Best Wishes,
Ashutosh Bapat
EnterpriseDB Corporation
The Postgres Database Company

Re: Minor code improvement to postgresGetForeignJoinPaths

От:
Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
Дата:
Hi Ashutosh,

> You are right. Every call except that one is using NIL, so better to
> fix it. The pattern was repeated in the recent aggregate pushdown
> support. Here's patch to fix create_foreignscan_path() call in
> add_foreign_grouping_paths() as well.

Thanks for the review!

Tatsuro Yamada
NTT Open Source Software Center




Re: Minor code improvement to postgresGetForeignJoinPaths

От:
Robert Haas <robertmhaas@gmail.com>
Дата:
On Tue, Oct 25, 2016 at 1:59 AM, Tatsuro Yamada
 wrote:
> Hi Ashutosh,
>> You are right. Every call except that one is using NIL, so better to
>> fix it. The pattern was repeated in the recent aggregate pushdown
>> support. Here's patch to fix create_foreignscan_path() call in
>> add_foreign_grouping_paths() as well.
>
> Thanks for the review!

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


Re: Minor code improvement to postgresGetForeignJoinPaths

От:
Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp>
Дата:
On 2016/11/04 0:29, Robert Haas wrote:
> Committed.

Thanks!

Tatsuro Yamada
NTT Open Source Software Center




FAQ