diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-11-21 18:00:07 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-11-21 18:29:21 +0100 |
commit | 2e4db241bfd3206bad8286f8ffc2db6bbdaefcdf (patch) | |
tree | 709eee963e46e556e7f6e54a2eceba236e816a9e /src/backend/access/index/indexam.c | |
parent | 43a54a3bccd7dc6be798475214d561f3e93b3055 (diff) |
Remove configure --disable-float4-byval
This build option was only useful to maintain compatibility for
version-0 functions, but those are no longer supported, so this option
can be removed.
float4 is now always pass-by-value; the pass-by-reference code path is
completely removed.
Discussion: https://www.postgresql.org/message-id/flat/f3e1e576-2749-bbd7-2d57-3f9dcf75255a@2ndquadrant.com
Diffstat (limited to 'src/backend/access/index/indexam.c')
-rw-r--r-- | src/backend/access/index/indexam.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/backend/access/index/indexam.c b/src/backend/access/index/indexam.c index 9dfa0ddfbb6..4af418287d2 100644 --- a/src/backend/access/index/indexam.c +++ b/src/backend/access/index/indexam.c @@ -879,11 +879,6 @@ index_store_float8_orderby_distances(IndexScanDesc scan, Oid *orderByTypes, else if (orderByTypes[i] == FLOAT4OID) { /* convert distance function's result to ORDER BY type */ -#ifndef USE_FLOAT4_BYVAL - /* must free any old value to avoid memory leakage */ - if (!scan->xs_orderbynulls[i]) - pfree(DatumGetPointer(scan->xs_orderbyvals[i])); -#endif if (distances && !distances[i].isnull) { scan->xs_orderbyvals[i] = Float4GetDatum((float4) distances[i].value); |