Small code simplification
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 29 Nov 2019 09:55:31 +0000 (10:55 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 29 Nov 2019 09:55:31 +0000 (10:55 +0100)
FLOAT8PASSBYVAL can be used instead of USE_FLOAT8_BYVAL here.

src/backend/utils/adt/rangetypes_typanalyze.c

index d01d3032ccacfa5dcae4c219d2f77bc51a6b4580..b438625951adc2b0658a680b4573d7b8b3402876 100644 (file)
@@ -325,11 +325,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
        stats->numvalues[slot_idx] = num_hist;
        stats->statypid[slot_idx] = FLOAT8OID;
        stats->statyplen[slot_idx] = sizeof(float8);
-#ifdef USE_FLOAT8_BYVAL
-       stats->statypbyval[slot_idx] = true;
-#else
-       stats->statypbyval[slot_idx] = false;
-#endif
+       stats->statypbyval[slot_idx] = FLOAT8PASSBYVAL;
        stats->statypalign[slot_idx] = 'd';
 
        /* Store the fraction of empty ranges */