pgsql: Mostly-cosmetic adjustments to estimate_multivariate_bucketsize( - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Mostly-cosmetic adjustments to estimate_multivariate_bucketsize(
Date
Msg-id E1udCDE-0077ou-1i@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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 <tndrwang@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAHewXNnHBOO9NEa=NBDYOrwZL4oHu2NOcTYvqyNyWEswo8f5OQ@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(-)


pgsql-committers by date:

Previous
From: Alexander Korotkov
Date:
Subject: pgsql: Fix infinite wait when reading a partially written WAL record
Next
From: Alexander Korotkov
Date:
Subject: pgsql: Fix infinite wait when reading a partially written WAL record