Re: Remove vardata parameters from eqjoinsel_inner

Поиск
Список
Период
Сортировка
От Ilia Evdokimov
Тема Re: Remove vardata parameters from eqjoinsel_inner
Дата
Msg-id 95f1deab-3458-45f6-a13b-d6f12b3d3ba3@tantorlabs.com
обсуждение исходный текст
Ответ на Re: Remove vardata parameters from eqjoinsel_inner  (Richard Guo <guofenglinux@gmail.com>)
Список pgsql-hackers


On 27.03.2025 10:48, Richard Guo wrote:
I'm wondering whether we should also remove parameter vardata1 from
eqjoinsel_semi.  vardata2 is still needed though to clamp nd2 to be
not more than the rel's row estimate.

Thanks
Richard


Indeed, the parameter vardata1 in eqjoinsel_semi() is currently unused and could logically be removed. However, simply leaving a single parameter named vardata2 would appear strange and unintuitive, as it implicitly suggests the existence of a corresponding "first" parameter. I suggest renaming vardata2 to something more descriptive, such as rhs_vardata, clearly indicating its role related specifically to the right side of the join condition.

I attached v2 patch with changes.

Any thoughts?

--
Best regards,
Ilia Evdokimov,
Tantor Labs LLC.

Вложения

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