Mostly-cosmetic adjustments to estimate_multivariate_bucketsize().

The only practical effect of these changes is to avoid a useless
list_copy() operation when there is a single hashclause.  That's
never going to make any noticeable performance difference, but
the code is arguably clearer this way, especially if we take the
opportunity to add some comments so that readers don't have to
reverse-engineer the usage of these local variables.  Also add
some braces for better/more consistent style.

Author: Tender Wang <tndrw...@gmail.com>
Reviewed-by: Tom Lane <t...@sss.pgh.pa.us>
Discussion: 
https://postgr.es/m/CAHewXNnHBOO9NEa=nbdyorwzl4ohu2noctyvqynyweswo8f...@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aadf7db66ef5a8a723eb3362e2c8b460738f1107

Modified Files
--------------
src/backend/utils/adt/selfuncs.c | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

Reply via email to