Re: Remove vardata parameters from eqjoinsel_inner - Mailing list pgsql-hackers

From Ilia Evdokimov
Subject Re: Remove vardata parameters from eqjoinsel_inner
Date
Msg-id 95f1deab-3458-45f6-a13b-d6f12b3d3ba3@tantorlabs.com
Whole thread Raw
In response to Re: Remove vardata parameters from eqjoinsel_inner  (Richard Guo <guofenglinux@gmail.com>)
List 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.

Attachment

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: getting "shell command argument contains a newline or carriage return:" error with pg_dumpall when db name have new line in double quote
Next
From: Robert Haas
Date:
Subject: Re: making EXPLAIN extensible