Commit e6c2d17c authored by Peter Eisentraut's avatar Peter Eisentraut

Small code simplification

FLOAT8PASSBYVAL can be used instead of USE_FLOAT8_BYVAL here.
parent 7fc380f8
...@@ -325,11 +325,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc, ...@@ -325,11 +325,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
stats->numvalues[slot_idx] = num_hist; stats->numvalues[slot_idx] = num_hist;
stats->statypid[slot_idx] = FLOAT8OID; stats->statypid[slot_idx] = FLOAT8OID;
stats->statyplen[slot_idx] = sizeof(float8); stats->statyplen[slot_idx] = sizeof(float8);
#ifdef USE_FLOAT8_BYVAL stats->statypbyval[slot_idx] = FLOAT8PASSBYVAL;
stats->statypbyval[slot_idx] = true;
#else
stats->statypbyval[slot_idx] = false;
#endif
stats->statypalign[slot_idx] = 'd'; stats->statypalign[slot_idx] = 'd';
/* Store the fraction of empty ranges */ /* Store the fraction of empty ranges */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment