diff options
Diffstat (limited to 'src/backend/utils/fmgr/fmgr.c')
-rw-r--r-- | src/backend/utils/fmgr/fmgr.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/backend/utils/fmgr/fmgr.c b/src/backend/utils/fmgr/fmgr.c index 099ebd779ba..2ce7a866c90 100644 --- a/src/backend/utils/fmgr/fmgr.c +++ b/src/backend/utils/fmgr/fmgr.c @@ -1683,7 +1683,7 @@ OidSendFunctionCall(Oid functionId, Datum val) /*------------------------------------------------------------------------- * Support routines for standard maybe-pass-by-reference datatypes * - * int8, float4, and float8 can be passed by value if Datum is wide enough. + * int8 and float8 can be passed by value if Datum is wide enough. * (For backwards-compatibility reasons, we allow pass-by-ref to be chosen * at compile time even if pass-by-val is possible.) * @@ -1703,21 +1703,6 @@ Int64GetDatum(int64 X) *retval = X; return PointerGetDatum(retval); } -#endif /* USE_FLOAT8_BYVAL */ - -#ifndef USE_FLOAT4_BYVAL - -Datum -Float4GetDatum(float4 X) -{ - float4 *retval = (float4 *) palloc(sizeof(float4)); - - *retval = X; - return PointerGetDatum(retval); -} -#endif - -#ifndef USE_FLOAT8_BYVAL Datum Float8GetDatum(float8 X) @@ -1727,7 +1712,7 @@ Float8GetDatum(float8 X) *retval = X; return PointerGetDatum(retval); } -#endif +#endif /* USE_FLOAT8_BYVAL */ /*------------------------------------------------------------------------- |