Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit e6c2d17

Browse files
committed
Small code simplification
FLOAT8PASSBYVAL can be used instead of USE_FLOAT8_BYVAL here.
1 parent 7fc380f commit e6c2d17

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/backend/utils/adt/rangetypes_typanalyze.c

+1-5
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,7 @@ compute_range_stats(VacAttrStats *stats, AnalyzeAttrFetchFunc fetchfunc,
325325
stats->numvalues[slot_idx] = num_hist;
326326
stats->statypid[slot_idx] = FLOAT8OID;
327327
stats->statyplen[slot_idx] = sizeof(float8);
328-
#ifdef USE_FLOAT8_BYVAL
329-
stats->statypbyval[slot_idx] = true;
330-
#else
331-
stats->statypbyval[slot_idx] = false;
332-
#endif
328+
stats->statypbyval[slot_idx] = FLOAT8PASSBYVAL;
333329
stats->statypalign[slot_idx] = 'd';
334330

335331
/* Store the fraction of empty ranges */

0 commit comments

Comments
 (0)