mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
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
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user