RE: Unused function parameter in get_qual_from_partbound()

Поиск
Список
Период
Сортировка
От houzj.fnst@fujitsu.com
Тема RE: Unused function parameter in get_qual_from_partbound()
Дата
Msg-id OS0PR01MB57163D1C960B3B038B25A51494369@OS0PR01MB5716.jpnprd01.prod.outlook.com
обсуждение исходный текст
Ответ на Re: Unused function parameter in get_qual_from_partbound()  (David Rowley <dgrowleyml@gmail.com>)
Ответы Re: Unused function parameter in get_qual_from_partbound()  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Tuesday, June 8, 2021 7:30 PM David Rowley <dgrowleyml@gmail.com>
> On Tue, 8 Jun 2021 at 21:50, houzj.fnst@fujitsu.com <houzj.fnst@fujitsu.com>
> wrote:
> > I noticed that the first function parameter in
> > get_qual_from_partbound(**Relation rel**, Relation parent, is not used in the
> function.
> >
> > Is it better to remove it like the attached patch ?
> 
> Going by [1] it was used when it went in. It looks like it was for mapping attribute
> numbers between parent and partition rels.
> 
> Going by [2], it looks like it became unused due to the attribute mapping code
> being moved down into map_partition_varattnos().
> 
> As for whether we should remove it or not, because it's an external function
> that an extension might want to use, it would need to wait until at least we
> branch for PG15.
> 
> Likely it's best to add the patch to the July commitfest so that we can make a
> decision then.

OK, Thanks for the explanation.
Added to CF: https://commitfest.postgresql.org/33/3159/

Best regards,
houzj

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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: Re: pg14b1 stuck in lazy_scan_prune/heap_page_prune of pg_statistic
Следующее
От: Jeff Davis
Дата:
Сообщение: Re: alter table set TABLE ACCESS METHOD