Cleanup SubPlanstate

Started by Rafia Sabihabout 2 years ago3 messageshackers
Jump to latest
#1Rafia Sabih
rafia.pghackers@gmail.com

Hello hackers,

While reviewing a related patch, it came to the notice that tab_eq_funcs in
the SubPlanState is not used. Hence the patch.

--
Regards,
Rafia Sabih
CYBERTEC PostgreSQL International GmbH

Attachments:

0001-Remove-the-unused-field-from-the-struct-SubPlanState.patchapplication/x-patch; name=0001-Remove-the-unused-field-from-the-struct-SubPlanState.patchDownload+1-8
#2Andrei Lepikhov
lepihov@gmail.com
In reply to: Rafia Sabih (#1)
Re: Cleanup SubPlanstate

On 10/29/24 21:34, Rafia Sabih wrote:

Hello hackers,

While reviewing a related patch, it came to the notice that tab_eq_funcs
in the SubPlanState is not used. Hence the patch.

Ok.
My initial doubt in such cases is - may it be the case where we mask a
mistake? But that case looks good. Introduced in ab05eed, the approach
with an equality function for each grouping column was replaced by
bf6c614, which moved the grouping operation execution via the expression
evaluation machinery. That made the tab_eq_funcs useless.
So, I think it may be removed.

--
regards, Andrei Lepikhov

#3David Rowley
dgrowleyml@gmail.com
In reply to: Rafia Sabih (#1)
Re: Cleanup SubPlanstate

On Wed, 30 Oct 2024 at 03:34, Rafia Sabih <rafia.pghackers@gmail.com> wrote:

While reviewing a related patch, it came to the notice that tab_eq_funcs in the SubPlanState is not used. Hence the patch.

Thanks for picking that up. I didn't quite understand why you adjusted
the header comment for the TupleHashEntryData struct when the field
you removed was in the SubPlanState struct, so I left that part out.
However, I did fix the existing typo in that comment.

I've pushed the resulting patch.

David