Hi,
While I debug hashjoin codes, in estimate_multivariate_bucketsize(), I
find that
the list_copy(hashclauses) below is unnecessary if we have a single join
clause.
List *clauses = list_copy(hashclauses);
...
I adjust the place of list_copy() call as the attached patch.
This can save some overhead of function calls and memory copies.
Any thoughts?
--
Thanks, Tender Wang