1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-21 02:52:47 +03:00

Revert "Convert *GetDatum() and DatumGet*() macros to inline functions"

This reverts commit 595836e99b.

It has problems when USE_FLOAT8_BYVAL is off.
This commit is contained in:
Peter Eisentraut
2022-09-12 19:57:07 +02:00
parent 595836e99b
commit e8d78581bb
27 changed files with 190 additions and 659 deletions

View File

@@ -62,18 +62,8 @@ typedef char GinTernaryValue;
#define GIN_MAYBE 2 /* don't know if item is present / don't know
* if matches */
static inline GinTernaryValue
DatumGetGinTernaryValue(Datum X)
{
return (GinTernaryValue) X;
}
static inline Datum
GinTernaryValueGetDatum(GinTernaryValue X)
{
return (Datum) X;
}
#define DatumGetGinTernaryValue(X) ((GinTernaryValue)(X))
#define GinTernaryValueGetDatum(X) ((Datum)(X))
#define PG_RETURN_GIN_TERNARY_VALUE(x) return GinTernaryValueGetDatum(x)
/* GUC parameters */