pgsql: Fix incorrect return value in brin_minmax_multi_distance_numeric

2025-08-05 Thread Tom Lane
Fix incorrect return value in brin_minmax_multi_distance_numeric(). The result of "DirectFunctionCall1(numeric_float8, d)" is already in Datum form, but the code was incorrectly applying PG_RETURN_FLOAT8() to it. On machines where float8 is pass-by-reference, this would result in complete garbage

pgsql: Fix incorrect return value in brin_minmax_multi_distance_numeric

2025-08-05 Thread Tom Lane
Fix incorrect return value in brin_minmax_multi_distance_numeric(). The result of "DirectFunctionCall1(numeric_float8, d)" is already in Datum form, but the code was incorrectly applying PG_RETURN_FLOAT8() to it. On machines where float8 is pass-by-reference, this would result in complete garbage

pgsql: Fix incorrect return value in brin_minmax_multi_distance_numeric

2025-08-05 Thread Tom Lane
Fix incorrect return value in brin_minmax_multi_distance_numeric(). The result of "DirectFunctionCall1(numeric_float8, d)" is already in Datum form, but the code was incorrectly applying PG_RETURN_FLOAT8() to it. On machines where float8 is pass-by-reference, this would result in complete garbage

pgsql: Fix incorrect return value in brin_minmax_multi_distance_numeric

2025-08-05 Thread Tom Lane
Fix incorrect return value in brin_minmax_multi_distance_numeric(). The result of "DirectFunctionCall1(numeric_float8, d)" is already in Datum form, but the code was incorrectly applying PG_RETURN_FLOAT8() to it. On machines where float8 is pass-by-reference, this would result in complete garbage

pgsql: Fix incorrect return value in brin_minmax_multi_distance_numeric

2025-08-05 Thread Tom Lane
Fix incorrect return value in brin_minmax_multi_distance_numeric(). The result of "DirectFunctionCall1(numeric_float8, d)" is already in Datum form, but the code was incorrectly applying PG_RETURN_FLOAT8() to it. On machines where float8 is pass-by-reference, this would result in complete garbage

pgsql: Fix incorrect return value in brin_minmax_multi_distance_numeric

2025-08-05 Thread Tom Lane
Fix incorrect return value in brin_minmax_multi_distance_numeric(). The result of "DirectFunctionCall1(numeric_float8, d)" is already in Datum form, but the code was incorrectly applying PG_RETURN_FLOAT8() to it. On machines where float8 is pass-by-reference, this would result in complete garbage