PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
fmgr.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FmgrInfo
 
struct  FunctionCallInfoData
 
struct  Pg_finfo_record
 
struct  Pg_magic_struct
 

Macros

#define fmgr_info_set_expr(expr, finfo)   ((finfo)->fn_expr = (expr))
 
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
 
#define FunctionCallInvoke(fcinfo)   ((* (fcinfo)->flinfo->fn_addr) (fcinfo))
 
#define PG_FUNCTION_ARGS   FunctionCallInfo fcinfo
 
#define PG_GET_COLLATION()   (fcinfo->fncollation)
 
#define PG_NARGS()   (fcinfo->nargs)
 
#define PG_ARGISNULL(n)   (fcinfo->argnull[n])
 
#define PG_DETOAST_DATUM(datum)   pg_detoast_datum((struct varlena *) DatumGetPointer(datum))
 
#define PG_DETOAST_DATUM_COPY(datum)   pg_detoast_datum_copy((struct varlena *) DatumGetPointer(datum))
 
#define PG_DETOAST_DATUM_SLICE(datum, f, c)
 
#define PG_DETOAST_DATUM_PACKED(datum)   pg_detoast_datum_packed((struct varlena *) DatumGetPointer(datum))
 
#define PG_FREE_IF_COPY(ptr, n)
 
#define PG_GETARG_DATUM(n)   (fcinfo->arg[n])
 
#define PG_GETARG_INT32(n)   DatumGetInt32(PG_GETARG_DATUM(n))
 
#define PG_GETARG_UINT32(n)   DatumGetUInt32(PG_GETARG_DATUM(n))
 
#define PG_GETARG_INT16(n)   DatumGetInt16(PG_GETARG_DATUM(n))
 
#define PG_GETARG_UINT16(n)   DatumGetUInt16(PG_GETARG_DATUM(n))
 
#define PG_GETARG_CHAR(n)   DatumGetChar(PG_GETARG_DATUM(n))
 
#define PG_GETARG_BOOL(n)   DatumGetBool(PG_GETARG_DATUM(n))
 
#define PG_GETARG_OID(n)   DatumGetObjectId(PG_GETARG_DATUM(n))
 
#define PG_GETARG_POINTER(n)   DatumGetPointer(PG_GETARG_DATUM(n))
 
#define PG_GETARG_CSTRING(n)   DatumGetCString(PG_GETARG_DATUM(n))
 
#define PG_GETARG_NAME(n)   DatumGetName(PG_GETARG_DATUM(n))
 
#define PG_GETARG_FLOAT4(n)   DatumGetFloat4(PG_GETARG_DATUM(n))
 
#define PG_GETARG_FLOAT8(n)   DatumGetFloat8(PG_GETARG_DATUM(n))
 
#define PG_GETARG_INT64(n)   DatumGetInt64(PG_GETARG_DATUM(n))
 
#define PG_GETARG_RAW_VARLENA_P(n)   ((struct varlena *) PG_GETARG_POINTER(n))
 
#define PG_GETARG_VARLENA_P(n)   PG_DETOAST_DATUM(PG_GETARG_DATUM(n))
 
#define PG_GETARG_VARLENA_PP(n)   PG_DETOAST_DATUM_PACKED(PG_GETARG_DATUM(n))
 
#define DatumGetByteaPP(X)   ((bytea *) PG_DETOAST_DATUM_PACKED(X))
 
#define DatumGetTextPP(X)   ((text *) PG_DETOAST_DATUM_PACKED(X))
 
#define DatumGetBpCharPP(X)   ((BpChar *) PG_DETOAST_DATUM_PACKED(X))
 
#define DatumGetVarCharPP(X)   ((VarChar *) PG_DETOAST_DATUM_PACKED(X))
 
#define DatumGetHeapTupleHeader(X)   ((HeapTupleHeader) PG_DETOAST_DATUM(X))
 
#define DatumGetByteaPCopy(X)   ((bytea *) PG_DETOAST_DATUM_COPY(X))
 
#define DatumGetTextPCopy(X)   ((text *) PG_DETOAST_DATUM_COPY(X))
 
#define DatumGetBpCharPCopy(X)   ((BpChar *) PG_DETOAST_DATUM_COPY(X))
 
#define DatumGetVarCharPCopy(X)   ((VarChar *) PG_DETOAST_DATUM_COPY(X))
 
#define DatumGetHeapTupleHeaderCopy(X)   ((HeapTupleHeader) PG_DETOAST_DATUM_COPY(X))
 
#define DatumGetByteaPSlice(X, m, n)   ((bytea *) PG_DETOAST_DATUM_SLICE(X,m,n))
 
#define DatumGetTextPSlice(X, m, n)   ((text *) PG_DETOAST_DATUM_SLICE(X,m,n))
 
#define DatumGetBpCharPSlice(X, m, n)   ((BpChar *) PG_DETOAST_DATUM_SLICE(X,m,n))
 
#define DatumGetVarCharPSlice(X, m, n)   ((VarChar *) PG_DETOAST_DATUM_SLICE(X,m,n))
 
#define PG_GETARG_BYTEA_PP(n)   DatumGetByteaPP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_TEXT_PP(n)   DatumGetTextPP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_BPCHAR_PP(n)   DatumGetBpCharPP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_VARCHAR_PP(n)   DatumGetVarCharPP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_HEAPTUPLEHEADER(n)   DatumGetHeapTupleHeader(PG_GETARG_DATUM(n))
 
#define PG_GETARG_BYTEA_P_COPY(n)   DatumGetByteaPCopy(PG_GETARG_DATUM(n))
 
#define PG_GETARG_TEXT_P_COPY(n)   DatumGetTextPCopy(PG_GETARG_DATUM(n))
 
#define PG_GETARG_BPCHAR_P_COPY(n)   DatumGetBpCharPCopy(PG_GETARG_DATUM(n))
 
#define PG_GETARG_VARCHAR_P_COPY(n)   DatumGetVarCharPCopy(PG_GETARG_DATUM(n))
 
#define PG_GETARG_HEAPTUPLEHEADER_COPY(n)   DatumGetHeapTupleHeaderCopy(PG_GETARG_DATUM(n))
 
#define PG_GETARG_BYTEA_P_SLICE(n, a, b)   DatumGetByteaPSlice(PG_GETARG_DATUM(n),a,b)
 
#define PG_GETARG_TEXT_P_SLICE(n, a, b)   DatumGetTextPSlice(PG_GETARG_DATUM(n),a,b)
 
#define PG_GETARG_BPCHAR_P_SLICE(n, a, b)   DatumGetBpCharPSlice(PG_GETARG_DATUM(n),a,b)
 
#define PG_GETARG_VARCHAR_P_SLICE(n, a, b)   DatumGetVarCharPSlice(PG_GETARG_DATUM(n),a,b)
 
#define DatumGetByteaP(X)   ((bytea *) PG_DETOAST_DATUM(X))
 
#define DatumGetTextP(X)   ((text *) PG_DETOAST_DATUM(X))
 
#define DatumGetBpCharP(X)   ((BpChar *) PG_DETOAST_DATUM(X))
 
#define DatumGetVarCharP(X)   ((VarChar *) PG_DETOAST_DATUM(X))
 
#define PG_GETARG_BYTEA_P(n)   DatumGetByteaP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_TEXT_P(n)   DatumGetTextP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_BPCHAR_P(n)   DatumGetBpCharP(PG_GETARG_DATUM(n))
 
#define PG_GETARG_VARCHAR_P(n)   DatumGetVarCharP(PG_GETARG_DATUM(n))
 
#define PG_RETURN_NULL()   do { fcinfo->isnull = true; return (Datum) 0; } while (0)
 
#define PG_RETURN_VOID()   return (Datum) 0
 
#define PG_RETURN_DATUM(x)   return (x)
 
#define PG_RETURN_INT32(x)   return Int32GetDatum(x)
 
#define PG_RETURN_UINT32(x)   return UInt32GetDatum(x)
 
#define PG_RETURN_INT16(x)   return Int16GetDatum(x)
 
#define PG_RETURN_UINT16(x)   return UInt16GetDatum(x)
 
#define PG_RETURN_CHAR(x)   return CharGetDatum(x)
 
#define PG_RETURN_BOOL(x)   return BoolGetDatum(x)
 
#define PG_RETURN_OID(x)   return ObjectIdGetDatum(x)
 
#define PG_RETURN_POINTER(x)   return PointerGetDatum(x)
 
#define PG_RETURN_CSTRING(x)   return CStringGetDatum(x)
 
#define PG_RETURN_NAME(x)   return NameGetDatum(x)
 
#define PG_RETURN_FLOAT4(x)   return Float4GetDatum(x)
 
#define PG_RETURN_FLOAT8(x)   return Float8GetDatum(x)
 
#define PG_RETURN_INT64(x)   return Int64GetDatum(x)
 
#define PG_RETURN_BYTEA_P(x)   PG_RETURN_POINTER(x)
 
#define PG_RETURN_TEXT_P(x)   PG_RETURN_POINTER(x)
 
#define PG_RETURN_BPCHAR_P(x)   PG_RETURN_POINTER(x)
 
#define PG_RETURN_VARCHAR_P(x)   PG_RETURN_POINTER(x)
 
#define PG_RETURN_HEAPTUPLEHEADER(x)   return HeapTupleHeaderGetDatum(x)
 
#define PG_FUNCTION_INFO_V1(funcname)
 
#define PG_MODULE_MAGIC_DATA
 
#define PG_MAGIC_FUNCTION_NAME   Pg_magic_func
 
#define PG_MAGIC_FUNCTION_NAME_STRING   "Pg_magic_func"
 
#define PG_MODULE_MAGIC
 
#define DirectFunctionCall1(func, arg1)   DirectFunctionCall1Coll(func, InvalidOid, arg1)
 
#define DirectFunctionCall2(func, arg1, arg2)   DirectFunctionCall2Coll(func, InvalidOid, arg1, arg2)
 
#define DirectFunctionCall3(func, arg1, arg2, arg3)   DirectFunctionCall3Coll(func, InvalidOid, arg1, arg2, arg3)
 
#define DirectFunctionCall4(func, arg1, arg2, arg3, arg4)   DirectFunctionCall4Coll(func, InvalidOid, arg1, arg2, arg3, arg4)
 
#define DirectFunctionCall5(func, arg1, arg2, arg3, arg4, arg5)   DirectFunctionCall5Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5)
 
#define DirectFunctionCall6(func, arg1, arg2, arg3, arg4, arg5, arg6)   DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
 
#define DirectFunctionCall7(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7)   DirectFunctionCall7Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
 
#define DirectFunctionCall8(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)   DirectFunctionCall8Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
 
#define DirectFunctionCall9(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)   DirectFunctionCall9Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
 
#define FunctionCall1(flinfo, arg1)   FunctionCall1Coll(flinfo, InvalidOid, arg1)
 
#define FunctionCall2(flinfo, arg1, arg2)   FunctionCall2Coll(flinfo, InvalidOid, arg1, arg2)
 
#define FunctionCall3(flinfo, arg1, arg2, arg3)   FunctionCall3Coll(flinfo, InvalidOid, arg1, arg2, arg3)
 
#define FunctionCall4(flinfo, arg1, arg2, arg3, arg4)   FunctionCall4Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4)
 
#define FunctionCall5(flinfo, arg1, arg2, arg3, arg4, arg5)   FunctionCall5Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5)
 
#define FunctionCall6(flinfo, arg1, arg2, arg3, arg4, arg5, arg6)   FunctionCall6Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
 
#define FunctionCall7(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7)   FunctionCall7Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
 
#define FunctionCall8(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)   FunctionCall8Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
 
#define FunctionCall9(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)   FunctionCall9Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
 
#define OidFunctionCall0(functionId)   OidFunctionCall0Coll(functionId, InvalidOid)
 
#define OidFunctionCall1(functionId, arg1)   OidFunctionCall1Coll(functionId, InvalidOid, arg1)
 
#define OidFunctionCall2(functionId, arg1, arg2)   OidFunctionCall2Coll(functionId, InvalidOid, arg1, arg2)
 
#define OidFunctionCall3(functionId, arg1, arg2, arg3)   OidFunctionCall3Coll(functionId, InvalidOid, arg1, arg2, arg3)
 
#define OidFunctionCall4(functionId, arg1, arg2, arg3, arg4)   OidFunctionCall4Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4)
 
#define OidFunctionCall5(functionId, arg1, arg2, arg3, arg4, arg5)   OidFunctionCall5Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5)
 
#define OidFunctionCall6(functionId, arg1, arg2, arg3, arg4, arg5, arg6)   OidFunctionCall6Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
 
#define OidFunctionCall7(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7)   OidFunctionCall7Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
 
#define OidFunctionCall8(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)   OidFunctionCall8Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
 
#define OidFunctionCall9(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)   OidFunctionCall9Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
 
#define AGG_CONTEXT_AGGREGATE   1 /* regular aggregate */
 
#define AGG_CONTEXT_WINDOW   2 /* window function */
 
#define FmgrHookIsNeeded(fn_oid)   (!needs_fmgr_hook ? false : (*needs_fmgr_hook)(fn_oid))
 

Typedefs

typedef struct NodefmNodePtr
 
typedef struct AggreffmAggrefPtr
 
typedef void(* fmExprContextCallbackFunction )(Datum arg)
 
typedef struct StringInfoDatafmStringInfo
 
typedef struct
FunctionCallInfoData
FunctionCallInfo
 
typedef Datum(* PGFunction )(FunctionCallInfo fcinfo)
 
typedef struct FmgrInfo FmgrInfo
 
typedef struct FunctionCallInfoData FunctionCallInfoData
 
typedef const Pg_finfo_record *(* PGFInfoFunction )(void)
 
typedef const Pg_magic_struct *(* PGModuleMagicFunction )(void)
 
typedef enum FmgrHookEventType FmgrHookEventType
 
typedef bool(* needs_fmgr_hook_type )(Oid fn_oid)
 
typedef void(* fmgr_hook_type )(FmgrHookEventType event, FmgrInfo *flinfo, Datum *arg)
 

Enumerations

enum  FmgrHookEventType { FHET_START, FHET_END, FHET_ABORT }
 

Functions

void fmgr_info (Oid functionId, FmgrInfo *finfo)
 
void fmgr_info_cxt (Oid functionId, FmgrInfo *finfo, MemoryContext mcxt)
 
void fmgr_info_copy (FmgrInfo *dstinfo, FmgrInfo *srcinfo, MemoryContext destcxt)
 
struct varlenapg_detoast_datum (struct varlena *datum)
 
struct varlenapg_detoast_datum_copy (struct varlena *datum)
 
struct varlenapg_detoast_datum_slice (struct varlena *datum, int32 first, int32 count)
 
struct varlenapg_detoast_datum_packed (struct varlena *datum)
 
Datum DirectFunctionCall1Coll (PGFunction func, Oid collation, Datum arg1)
 
Datum DirectFunctionCall2Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2)
 
Datum DirectFunctionCall3Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3)
 
Datum DirectFunctionCall4Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
 
Datum DirectFunctionCall5Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
 
Datum DirectFunctionCall6Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
 
Datum DirectFunctionCall7Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
 
Datum DirectFunctionCall8Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
 
Datum DirectFunctionCall9Coll (PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
 
Datum CallerFInfoFunctionCall1 (PGFunction func, FmgrInfo *flinfo, Oid collation, Datum arg1)
 
Datum CallerFInfoFunctionCall2 (PGFunction func, FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
 
Datum FunctionCall1Coll (FmgrInfo *flinfo, Oid collation, Datum arg1)
 
Datum FunctionCall2Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
 
Datum FunctionCall3Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3)
 
Datum FunctionCall4Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
 
Datum FunctionCall5Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
 
Datum FunctionCall6Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
 
Datum FunctionCall7Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
 
Datum FunctionCall8Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
 
Datum FunctionCall9Coll (FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
 
Datum OidFunctionCall0Coll (Oid functionId, Oid collation)
 
Datum OidFunctionCall1Coll (Oid functionId, Oid collation, Datum arg1)
 
Datum OidFunctionCall2Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2)
 
Datum OidFunctionCall3Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3)
 
Datum OidFunctionCall4Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
 
Datum OidFunctionCall5Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
 
Datum OidFunctionCall6Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
 
Datum OidFunctionCall7Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
 
Datum OidFunctionCall8Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
 
Datum OidFunctionCall9Coll (Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
 
Datum InputFunctionCall (FmgrInfo *flinfo, char *str, Oid typioparam, int32 typmod)
 
Datum OidInputFunctionCall (Oid functionId, char *str, Oid typioparam, int32 typmod)
 
char * OutputFunctionCall (FmgrInfo *flinfo, Datum val)
 
char * OidOutputFunctionCall (Oid functionId, Datum val)
 
Datum ReceiveFunctionCall (FmgrInfo *flinfo, fmStringInfo buf, Oid typioparam, int32 typmod)
 
Datum OidReceiveFunctionCall (Oid functionId, fmStringInfo buf, Oid typioparam, int32 typmod)
 
byteaSendFunctionCall (FmgrInfo *flinfo, Datum val)
 
byteaOidSendFunctionCall (Oid functionId, Datum val)
 
const Pg_finfo_recordfetch_finfo_record (void *filehandle, char *funcname)
 
void clear_external_function_hash (void *filehandle)
 
Oid fmgr_internal_function (const char *proname)
 
Oid get_fn_expr_rettype (FmgrInfo *flinfo)
 
Oid get_fn_expr_argtype (FmgrInfo *flinfo, int argnum)
 
Oid get_call_expr_argtype (fmNodePtr expr, int argnum)
 
bool get_fn_expr_arg_stable (FmgrInfo *flinfo, int argnum)
 
bool get_call_expr_arg_stable (fmNodePtr expr, int argnum)
 
bool get_fn_expr_variadic (FmgrInfo *flinfo)
 
bool CheckFunctionValidatorAccess (Oid validatorOid, Oid functionOid)
 
PGFunction load_external_function (char *filename, char *funcname, bool signalNotFound, void **filehandle)
 
PGFunction lookup_external_function (void *filehandle, char *funcname)
 
void load_file (const char *filename, bool restricted)
 
void ** find_rendezvous_variable (const char *varName)
 
Size EstimateLibraryStateSpace (void)
 
void SerializeLibraryState (Size maxsize, char *start_address)
 
void RestoreLibraryState (char *start_address)
 
int AggCheckCallContext (FunctionCallInfo fcinfo, MemoryContext *aggcontext)
 
fmAggrefPtr AggGetAggref (FunctionCallInfo fcinfo)
 
MemoryContext AggGetTempMemoryContext (FunctionCallInfo fcinfo)
 
void AggRegisterCallback (FunctionCallInfo fcinfo, fmExprContextCallbackFunction func, Datum arg)
 
char * fmgr (Oid procedureId,...)
 

Variables

char * Dynamic_library_path
 
PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook
 
PGDLLIMPORT fmgr_hook_type fmgr_hook
 

Macro Definition Documentation

#define AGG_CONTEXT_WINDOW   2 /* window function */

Definition at line 686 of file fmgr.h.

Referenced by AggCheckCallContext().

#define DatumGetBpCharP (   X)    ((BpChar *) PG_DETOAST_DATUM(X))

Definition at line 289 of file fmgr.h.

#define DatumGetBpCharPCopy (   X)    ((BpChar *) PG_DETOAST_DATUM_COPY(X))

Definition at line 255 of file fmgr.h.

#define DatumGetBpCharPP (   X)    ((BpChar *) PG_DETOAST_DATUM_PACKED(X))

Definition at line 249 of file fmgr.h.

Referenced by bpcharfastcmp_c().

#define DatumGetBpCharPSlice (   X,
  m,
 
)    ((BpChar *) PG_DETOAST_DATUM_SLICE(X,m,n))

Definition at line 261 of file fmgr.h.

#define DatumGetByteaP (   X)    ((bytea *) PG_DETOAST_DATUM(X))
#define DatumGetByteaPCopy (   X)    ((bytea *) PG_DETOAST_DATUM_COPY(X))

Definition at line 253 of file fmgr.h.

Referenced by tuple_data_split_internal().

#define DatumGetByteaPSlice (   X,
  m,
 
)    ((bytea *) PG_DETOAST_DATUM_SLICE(X,m,n))

Definition at line 259 of file fmgr.h.

Referenced by bytea_substring().

#define DatumGetHeapTupleHeaderCopy (   X)    ((HeapTupleHeader) PG_DETOAST_DATUM_COPY(X))

Definition at line 257 of file fmgr.h.

#define DatumGetTextP (   X)    ((text *) PG_DETOAST_DATUM(X))

Definition at line 288 of file fmgr.h.

Referenced by gbt_text_consistent().

#define DatumGetTextPCopy (   X)    ((text *) PG_DETOAST_DATUM_COPY(X))

Definition at line 254 of file fmgr.h.

#define DatumGetTextPSlice (   X,
  m,
 
)    ((text *) PG_DETOAST_DATUM_SLICE(X,m,n))

Definition at line 260 of file fmgr.h.

Referenced by text_substring().

#define DatumGetVarCharP (   X)    ((VarChar *) PG_DETOAST_DATUM(X))

Definition at line 290 of file fmgr.h.

#define DatumGetVarCharPCopy (   X)    ((VarChar *) PG_DETOAST_DATUM_COPY(X))

Definition at line 256 of file fmgr.h.

#define DatumGetVarCharPP (   X)    ((VarChar *) PG_DETOAST_DATUM_PACKED(X))

Definition at line 250 of file fmgr.h.

#define DatumGetVarCharPSlice (   X,
  m,
 
)    ((VarChar *) PG_DETOAST_DATUM_SLICE(X,m,n))

Definition at line 262 of file fmgr.h.

#define DirectFunctionCall1 (   func,
  arg1 
)    DirectFunctionCall1Coll(func, InvalidOid, arg1)

Definition at line 576 of file fmgr.h.

Referenced by abs_interval(), AlterSubscription(), assign_random_seed(), autoinc(), cash_numeric(), CatalogCacheComputeHashValue(), convert_function_name(), convert_numeric_to_scalar(), convert_requires_to_datum(), convert_timevalue_to_scalar(), convert_type_name(), CopyOneRowTo(), CreateAccessMethod(), createdb(), CreateForeignDataWrapper(), CreateForeignServer(), CreatePolicy(), CreatePublication(), CreateRole(), CreateSubscription(), CreateTableSpace(), CreateTrigger(), current_schema(), current_schemas(), current_user(), defGetInt64(), flatten_set_variable_args(), funny_dup17(), gbt_bpchar_compress(), gbt_bpchar_consistent(), gbt_numeric_penalty(), get_available_versions_for_extension(), getdatabaseencoding(), gin_page_opaque_info(), inet_client_port(), inet_server_port(), InsertExtensionTuple(), int2_accum(), int2_accum_inv(), int4_accum(), int4_accum_inv(), int4_to_char(), int64_to_numeric(), int8_accum(), int8_accum_inv(), int8_avg(), int8_avg_accum(), int8_avg_accum_inv(), int8_avg_serialize(), int8_sum(), int8_to_char(), interval_hash(), jsonb_agg_transfn(), jsonb_array_element_text(), jsonb_object_agg_transfn(), jsonb_object_field_text(), jsonb_put_escaped_value(), JsonbHashScalarValue(), leftmostvalue_inet(), lo_manage(), ltree_addtext(), ltree_textadd(), make_greater_string(), make_row_from_rec_and_jsonb(), make_tuple_from_result_row(), nameiclike(), nameicnlike(), network_scan_first(), network_scan_last(), NextCopyFrom(), numeric_absolute(), numeric_avg(), numeric_avg_serialize(), numeric_cash(), numeric_float4(), numeric_float8(), numeric_half_rounded(), numeric_poly_avg(), numeric_poly_serialize(), numeric_serialize(), numeric_shift_right(), numeric_to_char(), numeric_to_cstring(), numeric_to_double_no_overflow(), numeric_to_number(), numrange_subdiff(), parsetinterval(), patternsel(), pg_available_extensions(), pg_client_encoding(), pg_convert_from(), pg_convert_to(), PG_encoding_to_char(), pg_get_viewdef_worker(), pg_size_bytes(), pg_stat_get_activity(), pg_stat_get_backend_client_addr(), pg_stat_get_backend_client_port(), pgrowlocks(), plperl_sv_to_literal(), plperl_trigger_build_args(), plpgsql_exec_trigger(), pltcl_trigger_handler(), PLy_trigger_build_args(), PLyDecimal_FromNumeric(), poly2path(), poly_center(), populate_record_worker(), prefix_quals(), quote_ident_cstr(), quote_nullable(), regclassin(), regconfigin(), regdictionaryin(), regnamespacein(), regoperatorin(), regoperin(), regprocedurein(), regprocin(), regrolein(), regtypein(), RelationBuildTriggers(), RenameRole(), session_user(), set_timetravel(), string_to_datum(), table_to_xml_internal(), tablesample_init(), text2ltree(), timestamp_izone(), timestamp_mi(), timestamptz_izone(), timetz_hash(), timetz_izone(), tintervalleneq(), tintervallenge(), tintervallengt(), tintervallenle(), tintervallenlt(), tintervallenne(), tintervalout(), ts_match_tq(), ts_match_tt(), ttdummy(), and uuid_generate_internal().

#define DirectFunctionCall2 (   func,
  arg1,
  arg2 
)    DirectFunctionCall2Coll(func, InvalidOid, arg1, arg2)

Definition at line 578 of file fmgr.h.

Referenced by _int_contained(), _int_different(), _lt_q_rregex(), _ltq_rregex(), _ltree_r_isparent(), _ltree_r_risparent(), _ltxtq_rexec(), abs_interval(), array_iterator(), bitshiftleft(), bitshiftright(), box_div(), box_mul(), build_regexp_split_result(), cash_numeric(), circle_div_pt(), circle_mul_pt(), close_lseg(), close_pb(), close_sb(), compareJsonbScalarValue(), currtid_for_view(), date_dist(), date_mi_interval(), date_pl_interval(), daterange_canonical(), decompile_conbin(), dist_pb(), dist_sb(), equalsJsonbScalarValue(), g_cube_distance(), g_cube_picksplit(), gbt_bitcmp(), gbt_biteq(), gbt_bitge(), gbt_bitgt(), gbt_bitle(), gbt_bitlt(), gbt_byteacmp(), gbt_byteaeq(), gbt_byteage(), gbt_byteagt(), gbt_byteale(), gbt_bytealt(), gbt_date_penalty(), gbt_dateeq(), gbt_datege(), gbt_dategt(), gbt_datekey_cmp(), gbt_datele(), gbt_datelt(), gbt_intveq(), gbt_intvge(), gbt_intvgt(), gbt_intvkey_cmp(), gbt_intvle(), gbt_intvlt(), gbt_macad8eq(), gbt_macad8ge(), gbt_macad8gt(), gbt_macad8key_cmp(), gbt_macad8le(), gbt_macad8lt(), gbt_macadeq(), gbt_macadge(), gbt_macadgt(), gbt_macadkey_cmp(), gbt_macadle(), gbt_macadlt(), gbt_numeric_cmp(), gbt_numeric_eq(), gbt_numeric_ge(), gbt_numeric_gt(), gbt_numeric_le(), gbt_numeric_lt(), gbt_numeric_penalty(), gbt_time_dist(), gbt_time_penalty(), gbt_timeeq(), gbt_timege(), gbt_timegt(), gbt_timekey_cmp(), gbt_timele(), gbt_timelt(), gbt_ts_dist(), gbt_tseq(), gbt_tsge(), gbt_tsgt(), gbt_tskey_cmp(), gbt_tsle(), gbt_tslt(), gdb_date_dist(), generate_series_timestamp(), generate_series_timestamptz(), gin_extract_hstore_query(), gin_extract_jsonb_query(), gin_extract_jsonb_query_path(), gin_numeric_cmp(), gist_box_leaf_consistent(), gist_point_consistent(), hstore_contained(), hstore_eq(), hstore_ge(), hstore_gt(), hstore_le(), hstore_lt(), hstore_ne(), int4_cash(), int4range_canonical(), int8_avg(), int8_cash(), int8_sum(), int8_to_char(), int8range_canonical(), inter_sb(), interpt_pp(), interval_accum(), interval_accum_inv(), interval_avg(), interval_combine(), interval_dist(), interval_lerp(), intinterval(), line_distance(), line_interpt_internal(), line_intersect(), lt_q_regex(), lt_q_rregex(), ltq_rregex(), ltree_consistent(), ltxtq_rexec(), mul_d_interval(), network_scan_last(), numeric_avg(), numeric_cash(), numeric_half_rounded(), numeric_is_less(), numeric_poly_avg(), numeric_shift_right(), numeric_to_char(), numeric_to_number(), numrange_subdiff(), on_sb(), on_sl(), path_distance(), path_div_pt(), path_mul_pt(), pg_size_bytes(), pg_wal_location_diff(), phraseto_tsquery(), plainto_tsquery(), poly_contain(), poly_contained(), rboolop(), regress_dist_ptpath(), regress_path_dist(), rtree_internal_consistent(), similarity_dist(), similarity_op(), spg_box_quad_leaf_consistent(), spg_quad_inner_consistent(), text_isequal(), time_dist(), timestamp_mi_interval(), timestamptz_mi_interval(), tintervalct(), tintervalov(), tintervalsame(), to_tsquery(), to_tsvector(), ts_dist(), ts_match_qv(), ts_match_tq(), ts_match_tt(), tsq_mcontained(), and tstz_dist().

#define DirectFunctionCall4 (   func,
  arg1,
  arg2,
  arg3,
  arg4 
)    DirectFunctionCall4Coll(func, InvalidOid, arg1, arg2, arg3, arg4)
#define DirectFunctionCall5 (   func,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)    DirectFunctionCall5Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5)
#define DirectFunctionCall6 (   func,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)    DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)

Definition at line 586 of file fmgr.h.

#define DirectFunctionCall7 (   func,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7 
)    DirectFunctionCall7Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)

Definition at line 588 of file fmgr.h.

#define DirectFunctionCall8 (   func,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8 
)    DirectFunctionCall8Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)

Definition at line 590 of file fmgr.h.

#define DirectFunctionCall9 (   func,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8,
  arg9 
)    DirectFunctionCall9Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)

Definition at line 592 of file fmgr.h.

#define fmgr_info_set_expr (   expr,
  finfo 
)    ((finfo)->fn_expr = (expr))
#define FmgrHookIsNeeded (   fn_oid)    (!needs_fmgr_hook ? false : (*needs_fmgr_hook)(fn_oid))

Definition at line 720 of file fmgr.h.

Referenced by fmgr_info_cxt_security(), inline_function(), and inline_set_returning_function().

#define FunctionCall2 (   flinfo,
  arg1,
  arg2 
)    FunctionCall2Coll(flinfo, InvalidOid, arg1, arg2)
#define FunctionCall3 (   flinfo,
  arg1,
  arg2,
  arg3 
)    FunctionCall3Coll(flinfo, InvalidOid, arg1, arg2, arg3)
#define FunctionCall4 (   flinfo,
  arg1,
  arg2,
  arg3,
  arg4 
)    FunctionCall4Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4)
#define FunctionCall5 (   flinfo,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)    FunctionCall5Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5)

Definition at line 602 of file fmgr.h.

Referenced by perform_default_encoding_conversion().

#define FunctionCall6 (   flinfo,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)    FunctionCall6Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)

Definition at line 604 of file fmgr.h.

#define FunctionCall7 (   flinfo,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7 
)    FunctionCall7Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)

Definition at line 606 of file fmgr.h.

#define FunctionCall8 (   flinfo,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8 
)    FunctionCall8Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)

Definition at line 608 of file fmgr.h.

#define FunctionCall9 (   flinfo,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8,
  arg9 
)    FunctionCall9Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)

Definition at line 610 of file fmgr.h.

#define InitFunctionCallInfoData (   Fcinfo,
  Flinfo,
  Nargs,
  Collation,
  Context,
  Resultinfo 
)
Value:
do { \
(Fcinfo).flinfo = (Flinfo); \
(Fcinfo).context = (Context); \
(Fcinfo).resultinfo = (Resultinfo); \
(Fcinfo).fncollation = (Collation); \
(Fcinfo).isnull = false; \
(Fcinfo).nargs = (Nargs); \
} while (0)

Definition at line 112 of file fmgr.h.

Referenced by advance_windowaggregate(), advance_windowaggregate_base(), array_cmp(), array_contain_compare(), array_eq(), array_replace_internal(), build_pertrans_for_aggref(), call_pltcl_start_proc(), CallerFInfoFunctionCall1(), CallerFInfoFunctionCall2(), DirectFunctionCall1Coll(), DirectFunctionCall2Coll(), DirectFunctionCall3Coll(), DirectFunctionCall4Coll(), DirectFunctionCall5Coll(), DirectFunctionCall6Coll(), DirectFunctionCall7Coll(), DirectFunctionCall8Coll(), DirectFunctionCall9Coll(), eval_windowfunction(), EventTriggerInvoke(), ExecCallTriggerFunc(), ExecEvalArrayCoerceExpr(), ExecEvalMinMax(), ExecEvalRowCompare(), ExecEvalSQLValueFunction(), ExecMakeTableFunctionResult(), finalize_aggregate(), finalize_windowaggregate(), FunctionCall1Coll(), FunctionCall2Coll(), FunctionCall3Coll(), FunctionCall4Coll(), FunctionCall5Coll(), FunctionCall6Coll(), FunctionCall7Coll(), FunctionCall8Coll(), FunctionCall9Coll(), HandleFunctionRequest(), hash_array(), init_fcache(), InputFunctionCall(), int2vectorrecv(), OidFunctionCall0Coll(), OidFunctionCall1Coll(), OidFunctionCall2Coll(), OidFunctionCall3Coll(), OidFunctionCall4Coll(), OidFunctionCall5Coll(), OidFunctionCall6Coll(), OidFunctionCall7Coll(), OidFunctionCall8Coll(), OidFunctionCall9Coll(), oidvectorrecv(), PrepareSortSupportComparisonShim(), ReceiveFunctionCall(), record_cmp(), record_eq(), width_bucket_array_fixed(), and width_bucket_array_variable().

#define OidFunctionCall0 (   functionId)    OidFunctionCall0Coll(functionId, InvalidOid)

Definition at line 612 of file fmgr.h.

Referenced by GetFdwRoutine(), and GetIndexAmRoutine().

#define OidFunctionCall2 (   functionId,
  arg1,
  arg2 
)    OidFunctionCall2Coll(functionId, InvalidOid, arg1, arg2)

Definition at line 616 of file fmgr.h.

Referenced by transformGenericOptions().

#define OidFunctionCall3 (   functionId,
  arg1,
  arg2,
  arg3 
)    OidFunctionCall3Coll(functionId, InvalidOid, arg1, arg2, arg3)

Definition at line 618 of file fmgr.h.

#define OidFunctionCall4 (   functionId,
  arg1,
  arg2,
  arg3,
  arg4 
)    OidFunctionCall4Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4)

Definition at line 620 of file fmgr.h.

#define OidFunctionCall5 (   functionId,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5 
)    OidFunctionCall5Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5)

Definition at line 622 of file fmgr.h.

Referenced by CreateConversionCommand(), and pg_do_encoding_conversion().

#define OidFunctionCall6 (   functionId,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6 
)    OidFunctionCall6Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)

Definition at line 624 of file fmgr.h.

#define OidFunctionCall7 (   functionId,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7 
)    OidFunctionCall7Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)

Definition at line 626 of file fmgr.h.

#define OidFunctionCall8 (   functionId,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8 
)    OidFunctionCall8Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)

Definition at line 628 of file fmgr.h.

#define OidFunctionCall9 (   functionId,
  arg1,
  arg2,
  arg3,
  arg4,
  arg5,
  arg6,
  arg7,
  arg8,
  arg9 
)    OidFunctionCall9Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)

Definition at line 630 of file fmgr.h.

#define PG_ARGISNULL (   n)    (fcinfo->argnull[n])

Definition at line 166 of file fmgr.h.

Referenced by array_agg_array_finalfn(), array_agg_array_transfn(), array_agg_finalfn(), array_agg_transfn(), array_append(), array_cat(), array_fill(), array_fill_with_lower_bounds(), array_map(), array_position_common(), array_positions(), array_prepend(), array_remove(), array_replace(), array_to_text_null(), binary_upgrade_create_empty_extension(), bool_accum(), bool_accum_inv(), bool_alltrue(), bool_anytrue(), bytea_string_agg_finalfn(), bytea_string_agg_transfn(), concat_internal(), count_nulls(), dmetaphone(), dmetaphone_alt(), domain_in(), domain_recv(), enum_range_bounds(), fetch_array_arg_replace_nulls(), fmgr_oldstyle(), format_type(), hstore_from_arrays(), hstore_from_record(), hstore_from_text(), hstore_populate_record(), hypothetical_dense_rank_final(), hypothetical_rank_common(), int2_accum(), int2_accum_inv(), int2_sum(), int4_accum(), int4_accum_inv(), int4_sum(), int8_accum(), int8_accum_inv(), int8_avg_accum(), int8_avg_accum_inv(), int8_avg_combine(), int8_sum(), json_agg_finalfn(), json_agg_transfn(), json_build_array(), json_build_object(), json_object_agg_finalfn(), json_object_agg_transfn(), jsonb_agg_finalfn(), jsonb_agg_transfn(), jsonb_build_array(), jsonb_build_object(), jsonb_object_agg_finalfn(), jsonb_object_agg_transfn(), mode_final(), numeric_accum(), numeric_accum_inv(), numeric_avg(), numeric_avg_accum(), numeric_avg_combine(), numeric_combine(), numeric_poly_avg(), numeric_poly_combine(), numeric_poly_stddev_pop(), numeric_poly_stddev_samp(), numeric_poly_sum(), numeric_poly_var_pop(), numeric_poly_var_samp(), numeric_stddev_pop(), numeric_stddev_samp(), numeric_sum(), numeric_var_pop(), numeric_var_samp(), ordered_set_transition(), ordered_set_transition_multi(), overlaps_time(), overlaps_timestamp(), overlaps_timetz(), percentile_cont_final_common(), percentile_cont_multi_final_common(), percentile_disc_final(), percentile_disc_multi_final(), pg_current_logfile(), pg_file_rename(), pg_logical_slot_get_changes_guts(), pg_ls_dir(), pg_notify(), pg_prewarm(), pg_stat_get_activity(), pg_stat_get_subscription(), pltcl_argisnull(), populate_record_worker(), populate_recordset_worker(), quote_nullable(), range_constructor2(), range_constructor3(), sepgsql_restorecon(), sepgsql_setcon(), set_config_by_name(), similar_escape(), string_agg_finalfn(), string_agg_transfn(), text_concat_ws(), text_format(), text_to_array_internal(), tuple_data_split(), and xmlconcat2().

#define PG_DETOAST_DATUM_COPY (   datum)    pg_detoast_datum_copy((struct varlena *) DatumGetPointer(datum))

Definition at line 199 of file fmgr.h.

Referenced by accumArrayResult(), evaluate_expr(), and hstoreUpgrade().

#define PG_DETOAST_DATUM_PACKED (   datum)    pg_detoast_datum_packed((struct varlena *) DatumGetPointer(datum))

Definition at line 205 of file fmgr.h.

Referenced by numeric_abbrev_convert(), range_serialize(), record_image_cmp(), and record_image_eq().

#define PG_DETOAST_DATUM_SLICE (   datum,
  f,
  c 
)
Value:
(int32) (f), (int32) (c))
signed int int32
Definition: c.h:256
char * c
#define DatumGetPointer(X)
Definition: postgres.h:555
Definition: c.h:439
struct varlena * pg_detoast_datum_slice(struct varlena *datum, int32 first, int32 count)
Definition: fmgr.c:2217

Definition at line 201 of file fmgr.h.

#define PG_FREE_IF_COPY (   ptr,
 
)
Value:
do { \
if ((Pointer) (ptr) != PG_GETARG_POINTER(n)) \
pfree(ptr); \
} while (0)
#define PG_GETARG_POINTER(n)
Definition: fmgr.h:233
void pfree(void *pointer)
Definition: mcxt.c:950
char * Pointer
Definition: c.h:245

Definition at line 217 of file fmgr.h.

Referenced by _lca(), _lt_q_regex(), _ltq_extract_regex(), _ltq_regex(), _ltree_consistent(), _ltree_extract_isparent(), _ltree_extract_risparent(), _ltree_isparent(), _ltree_risparent(), _ltxtq_exec(), _ltxtq_extract_exec(), array_position_common(), array_positions(), array_to_tsvector(), bitcmp(), biteq(), bitge(), bitgt(), bitle(), bitlt(), bitne(), boolop(), bpchar_pattern_ge(), bpchar_pattern_gt(), bpchar_pattern_le(), bpchar_pattern_lt(), bpcharcmp(), bpchareq(), bpcharge(), bpchargt(), bpcharle(), bpcharlt(), bpcharne(), bqarr_out(), btbpchar_pattern_cmp(), bttext_pattern_cmp(), bttextcmp(), byteacmp(), byteaeq(), byteage(), byteagt(), byteale(), bytealt(), byteane(), citext_cmp(), citext_eq(), citext_ge(), citext_gt(), citext_hash(), citext_le(), citext_lt(), citext_ne(), cube_c_f8(), cube_c_f8_f8(), cube_cmp(), cube_contained(), cube_contains(), cube_dim(), cube_distance(), cube_enlarge(), cube_eq(), cube_ge(), cube_gt(), cube_inter(), cube_is_point(), cube_le(), cube_ll_coord(), cube_lt(), cube_ne(), cube_out(), cube_overlap(), cube_size(), cube_subset(), cube_union(), cube_ur_coord(), distance_chebyshev(), distance_taxicab(), g_cube_consistent(), g_intbig_consistent(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_compare_jsonb(), gin_extract_tsquery(), gin_extract_tsvector(), gist_poly_consistent(), gtsvectorout(), hashbpchar(), hashtext(), hashvarlena(), hstore_cmp(), hstore_hash(), icount(), idx(), intarray_push_array(), intarray_push_elem(), intset_union_elem(), jsonb_cmp(), jsonb_eq(), jsonb_ge(), jsonb_gt(), jsonb_hash(), jsonb_le(), jsonb_lt(), jsonb_ne(), lca(), lquery_out(), lt_q_regex(), ltq_regex(), ltree2text(), ltree_addltree(), ltree_addtext(), ltree_consistent(), ltree_index(), ltree_isparent(), ltree_out(), ltree_risparent(), ltree_textadd(), ltree_to_plpython(), ltxtq_exec(), ltxtq_out(), nlevel(), numeric_cmp(), numeric_eq(), numeric_ge(), numeric_gt(), numeric_le(), numeric_lt(), numeric_ne(), pg_armor(), pg_convert(), pg_crypt(), pg_dearmor(), pg_decrypt(), pg_decrypt_iv(), pg_digest(), pg_encrypt(), pg_encrypt_iv(), pg_gen_salt(), pg_gen_salt_rounds(), pg_hmac(), pgp_key_id_w(), pgp_pub_decrypt_bytea(), pgp_pub_decrypt_text(), pgp_pub_encrypt_bytea(), pgp_pub_encrypt_text(), pgp_sym_decrypt_bytea(), pgp_sym_decrypt_text(), pgp_sym_encrypt_bytea(), pgp_sym_encrypt_text(), poly_above(), poly_below(), poly_contain(), poly_left(), poly_overabove(), poly_overbelow(), poly_overlap(), poly_overleft(), poly_overright(), poly_right(), poly_same(), range_cmp(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), show_trgm(), similarity(), subarray(), subltree(), subpath(), text2ltree(), text_ge(), text_gt(), text_le(), text_lt(), text_pattern_ge(), text_pattern_gt(), text_pattern_le(), text_pattern_lt(), texteq(), textne(), to_tsvector_byid(), ts_headline_byid_opt(), ts_match_tq(), ts_match_vq(), ts_parse_byid(), ts_rank_tt(), ts_rank_ttf(), ts_rank_wtt(), ts_rank_wttf(), ts_rankcd_tt(), ts_rankcd_ttf(), ts_rankcd_wtt(), ts_rankcd_wttf(), ts_stat1(), ts_stat2(), tsquery_and(), tsquery_cmp(), tsquery_not(), tsquery_numnode(), tsquery_or(), tsquery_phrase_distance(), tsquery_rewrite(), tsquery_rewrite_query(), tsqueryout(), tsquerysend(), tsquerytree(), tsvector_concat(), tsvector_delete_arr(), tsvector_delete_str(), tsvector_filter(), tsvector_length(), tsvector_setweight(), tsvector_setweight_by_filter(), tsvector_strip(), tsvector_to_array(), tsvectorout(), unaccent_dict(), width_bucket_array(), word_similarity(), word_similarity_commutator_op(), word_similarity_dist_commutator_op(), word_similarity_dist_op(), and word_similarity_op().

#define PG_FUNCTION_ARGS   FunctionCallInfo fcinfo

Definition at line 150 of file fmgr.h.

#define PG_FUNCTION_INFO_V1 (   funcname)
Value:
extern Datum funcname(PG_FUNCTION_ARGS); \
extern PGDLLEXPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \
CppConcat(pg_finfo_,funcname) (void) \
{ \
static const Pg_finfo_record my_finfo = { 1 }; \
return &my_finfo; \
} \
extern int no_such_variable
#define PGDLLEXPORT
Definition: c.h:1066
uintptr_t Datum
Definition: postgres.h:372
#define PG_FUNCTION_ARGS
Definition: fmgr.h:150
#define CppConcat(x, y)
Definition: c.h:163

Definition at line 365 of file fmgr.h.

#define PG_GET_COLLATION ( )    (fcinfo->fncollation)

Definition at line 155 of file fmgr.h.

Referenced by array_cmp(), array_eq(), array_position_common(), array_positions(), array_remove(), array_replace(), arraycontained(), arraycontains(), arrayoverlap(), bpchar_larger(), bpchar_smaller(), bpcharcmp(), bpcharge(), bpchargt(), bpcharle(), bpcharlt(), brin_inclusion_add_value(), brin_inclusion_consistent(), brin_inclusion_union(), brin_minmax_add_value(), brin_minmax_consistent(), brin_minmax_union(), bttextcmp(), citext_cmp(), citext_ge(), citext_gt(), citext_larger(), citext_le(), citext_lt(), citext_smaller(), fmgr_sql(), gbt_bit_consistent(), gbt_bit_penalty(), gbt_bit_picksplit(), gbt_bit_same(), gbt_bit_union(), gbt_bpchar_consistent(), gbt_bytea_consistent(), gbt_bytea_penalty(), gbt_bytea_picksplit(), gbt_bytea_same(), gbt_bytea_union(), gbt_numeric_consistent(), gbt_numeric_penalty(), gbt_numeric_picksplit(), gbt_numeric_same(), gbt_numeric_union(), gbt_text_consistent(), gbt_text_penalty(), gbt_text_picksplit(), gbt_text_same(), gbt_text_union(), gin_btree_compare_prefix(), gin_enum_cmp(), gin_extract_query_trgm(), gtrgm_consistent(), initcap(), interval_to_char(), lower(), nameiclike(), nameicnlike(), nameicregexeq(), nameicregexne(), nameregexeq(), nameregexne(), numeric_to_number(), patternsel(), pg_collation_for(), regexp_match(), regexp_matches(), regexp_split_to_array(), regexp_split_to_table(), spg_text_inner_consistent(), spg_text_leaf_consistent(), text_ge(), text_gt(), text_larger(), text_le(), text_lt(), text_smaller(), texticlike(), texticnlike(), texticregexeq(), texticregexne(), textregexeq(), textregexne(), textregexreplace(), textregexreplace_noopt(), textregexsubstr(), timestamp_to_char(), timestamptz_to_char(), upper(), and width_bucket_array().

#define PG_GETARG_BOOL (   n)    DatumGetBool(PG_GETARG_DATUM(n))

Definition at line 231 of file fmgr.h.

Referenced by accept_weak_input(), array_to_json_pretty(), binary_upgrade_create_empty_extension(), binary_upgrade_set_record_init_privs(), bit(), bool_accum(), bool_accum_inv(), bool_int4(), booland_statefunc(), booleq(), boolge(), boolgt(), boolle(), boollt(), boolne(), boolor_statefunc(), boolout(), boolsend(), booltext(), bpchar(), brin_inclusion_add_value(), btboolcmp(), current_schemas(), cursor_to_xml(), cursor_to_xmlschema(), database_to_xml(), database_to_xml_and_xmlschema(), database_to_xmlschema(), dblink_close(), dblink_exec(), dblink_fetch(), dblink_open(), dblink_record_internal(), generate_subscripts(), jsonb_insert(), jsonb_set(), makeaclitem(), parse_ident(), pg_column_is_updatable(), pg_create_logical_replication_slot(), pg_create_physical_replication_slot(), pg_file_write(), pg_get_constraintdef_ext(), pg_get_expr_ext(), pg_get_indexdef_ext(), pg_get_ruledef_ext(), pg_get_triggerdef_ext(), pg_get_viewdef_ext(), pg_get_viewdef_name_ext(), pg_import_system_collations(), pg_logical_emit_message_bytea(), pg_ls_dir(), pg_read_binary_file(), pg_read_file(), pg_relation_is_updatable(), pg_replication_origin_progress(), pg_replication_origin_session_progress(), pg_start_backup(), pg_stat_file(), pg_stat_statements_1_2(), pg_stat_statements_1_3(), pg_stop_backup_v2(), query_to_xml(), query_to_xml_and_xmlschema(), query_to_xmlschema(), row_to_json_pretty(), schema_to_xml(), schema_to_xml_and_xmlschema(), schema_to_xmlschema(), set_config_by_name(), setval3_oid(), show_config_by_name_missing_ok(), table_to_xml(), table_to_xml_and_xmlschema(), table_to_xmlschema(), test_shm_mq_pipelined(), tuple_data_split(), varbit(), and varchar().

#define PG_GETARG_BPCHAR_P (   n)    DatumGetBpCharP(PG_GETARG_DATUM(n))

Definition at line 293 of file fmgr.h.

#define PG_GETARG_BPCHAR_P_COPY (   n)    DatumGetBpCharPCopy(PG_GETARG_DATUM(n))

Definition at line 272 of file fmgr.h.

#define PG_GETARG_BPCHAR_P_SLICE (   n,
  a,
 
)    DatumGetBpCharPSlice(PG_GETARG_DATUM(n),a,b)

Definition at line 278 of file fmgr.h.

#define PG_GETARG_BYTEA_P_COPY (   n)    DatumGetByteaPCopy(PG_GETARG_DATUM(n))

Definition at line 270 of file fmgr.h.

Referenced by byteasend(), byteaSetBit(), and byteaSetByte().

#define PG_GETARG_BYTEA_P_SLICE (   n,
  a,
 
)    DatumGetByteaPSlice(PG_GETARG_DATUM(n),a,b)

Definition at line 276 of file fmgr.h.

#define PG_GETARG_CSTRING (   n)    DatumGetCString(PG_GETARG_DATUM(n))

Definition at line 234 of file fmgr.h.

Referenced by abstimein(), aclitemin(), array_in(), ascii_to_mic(), ascii_to_utf8(), big5_to_euc_tw(), big5_to_mic(), big5_to_utf8(), bit_in(), boolin(), box_in(), bpcharin(), byteain(), cash_in(), charin(), chkpass_in(), cidin(), cidr_in(), circle_in(), complex_in(), cstring_in(), cstring_out(), cstring_send(), cube_in(), date_in(), domain_in(), ean13_in(), enum_in(), euc_cn_to_mic(), euc_cn_to_utf8(), euc_jis_2004_to_shift_jis_2004(), euc_jis_2004_to_utf8(), euc_jp_to_mic(), euc_jp_to_sjis(), euc_jp_to_utf8(), euc_kr_to_mic(), euc_kr_to_utf8(), euc_tw_to_big5(), euc_tw_to_mic(), euc_tw_to_utf8(), float4in(), float8in(), gb18030_to_utf8(), gbk_to_utf8(), hstore_in(), inet_in(), int2in(), int2vectorin(), int44in(), int4in(), int8in(), interval_in(), isbn_in(), ismn_in(), iso8859_1_to_utf8(), iso8859_to_utf8(), iso_to_koi8r(), iso_to_mic(), iso_to_win1251(), iso_to_win866(), issn_in(), johab_to_utf8(), json_in(), jsonb_in(), koi8r_to_iso(), koi8r_to_mic(), koi8r_to_utf8(), koi8r_to_win1251(), koi8r_to_win866(), koi8u_to_utf8(), latin1_to_mic(), latin2_to_mic(), latin2_to_win1250(), latin3_to_mic(), latin4_to_mic(), line_in(), lseg_in(), macaddr8_in(), macaddr_in(), mic_to_ascii(), mic_to_big5(), mic_to_euc_cn(), mic_to_euc_jp(), mic_to_euc_kr(), mic_to_euc_tw(), mic_to_iso(), mic_to_koi8r(), mic_to_latin1(), mic_to_latin2(), mic_to_latin3(), mic_to_latin4(), mic_to_sjis(), mic_to_win1250(), mic_to_win1251(), mic_to_win866(), namein(), numeric_in(), oidin(), oidvectorin(), path_in(), pg_lsn_in(), point_in(), poly_in(), range_in(), record_in(), regclassin(), regconfigin(), regdictionaryin(), regnamespacein(), regoperatorin(), regoperin(), regprocedurein(), regprocin(), regrolein(), regtypein(), reltimein(), seg_in(), shift_jis_2004_to_euc_jis_2004(), shift_jis_2004_to_utf8(), sjis_to_euc_jp(), sjis_to_mic(), sjis_to_utf8(), smgrin(), textin(), tidin(), time_in(), timestamp_in(), timestamptz_in(), timetz_in(), tintervalin(), tsqueryin(), tsvectorin(), txid_snapshot_in(), uhc_to_utf8(), unknownin(), unknownout(), unknownsend(), upc_in(), utf8_to_ascii(), utf8_to_big5(), utf8_to_euc_cn(), utf8_to_euc_jis_2004(), utf8_to_euc_jp(), utf8_to_euc_kr(), utf8_to_euc_tw(), utf8_to_gb18030(), utf8_to_gbk(), utf8_to_iso8859(), utf8_to_iso8859_1(), utf8_to_johab(), utf8_to_koi8r(), utf8_to_koi8u(), utf8_to_shift_jis_2004(), utf8_to_sjis(), utf8_to_uhc(), utf8_to_win(), uuid_in(), varbit_in(), varcharin(), win1250_to_latin2(), win1250_to_mic(), win1251_to_iso(), win1251_to_koi8r(), win1251_to_mic(), win1251_to_win866(), win866_to_iso(), win866_to_koi8r(), win866_to_mic(), win866_to_win1251(), win_to_utf8(), xidin(), and xml_in().

#define PG_GETARG_DATUM (   n)    (fcinfo->arg[n])

Definition at line 225 of file fmgr.h.

Referenced by _int_contained(), _int_contained_joinsel(), _int_contained_sel(), _int_contains_joinsel(), _int_contains_sel(), _int_overlap_joinsel(), _int_overlap_sel(), _lt_q_rregex(), _ltq_rregex(), _ltree_consistent(), _ltree_r_isparent(), _ltree_r_risparent(), _ltxtq_rexec(), array_agg_array_transfn(), array_agg_transfn(), array_append(), array_fill(), array_fill_with_lower_bounds(), array_larger(), array_position_common(), array_positions(), array_prepend(), array_remove(), array_replace(), array_smaller(), array_to_json(), array_to_json_pretty(), binary_decode(), binary_encode(), binary_upgrade_create_empty_extension(), bpcharoctetlen(), bpcharout(), brin_inclusion_add_value(), brin_minmax_add_value(), bytea_substr(), bytea_substr_no_len(), byteaeq(), byteane(), byteaoctetlen(), concat_internal(), date_dist(), dblink_fdw_validator(), elem_contained_by_range(), file_fdw_validator(), g_cube_compress(), g_intbig_decompress(), gbt_bit_consistent(), gbt_bit_same(), gbt_bpchar_consistent(), gbt_bytea_consistent(), gbt_bytea_same(), gbt_inet_consistent(), gbt_numeric_consistent(), gbt_numeric_same(), gbt_text_consistent(), gbt_text_same(), gin_btree_compare_prefix(), gin_btree_extract_query(), gin_btree_extract_value(), gin_extract_hstore_query(), gin_extract_jsonb_query(), gin_extract_jsonb_query_path(), gist_circle_distance(), gist_poly_distance(), gtsquery_decompress(), hstore_contained(), hstore_eq(), hstore_ge(), hstore_gt(), hstore_le(), hstore_lt(), hstore_ne(), hstore_version_diag(), hypothetical_dense_rank_final(), hypothetical_rank_common(), inet_gist_same(), int2_accum(), int2_accum_inv(), int4_accum(), int4_accum_inv(), int8_accum(), int8_accum_inv(), int8_avg_accum(), int8_avg_accum_inv(), int8_sum(), interval_dist(), json_agg_transfn(), json_build_array(), json_build_object(), json_object_agg_transfn(), json_out(), jsonb_agg_transfn(), jsonb_build_array(), jsonb_build_object(), jsonb_object_agg_transfn(), lt_q_rregex(), ltq_rregex(), ltree_consistent(), ltxtq_rexec(), metaphone(), mul_d_interval(), numeric_cash(), numrange_subdiff(), ordered_set_transition(), ordered_set_transition_multi(), overlaps_time(), overlaps_timestamp(), overlaps_timetz(), pg_column_size(), pg_convert_from(), pg_convert_to(), pg_get_object_address(), pg_options_to_table(), pg_replication_origin_create(), pg_replication_origin_drop(), pg_replication_origin_oid(), pg_replication_origin_progress(), pg_replication_origin_session_setup(), pg_wal_location_diff(), plpgsql_inline_handler(), plpython_inline_handler(), poly_contained(), postgres_fdw_validator(), postgresql_fdw_validator(), quote_nullable(), range_constructor2(), range_constructor3(), range_contains_elem(), range_gist_consistent(), rboolop(), row_to_json(), row_to_json_pretty(), sepgsql_restorecon(), sepgsql_setcon(), set_config_by_name(), show_config_by_name(), show_config_by_name_missing_ok(), similarity_dist(), similarity_op(), text_format(), text_substr(), text_substr_no_len(), texteq(), textlen(), textne(), textoctetlen(), textout(), thesaurus_lexize(), time_dist(), to_json(), to_jsonb(), ts_dist(), ts_headline(), ts_headline_byid(), ts_headline_opt(), ts_match_qv(), ts_match_tq(), ts_match_tt(), ts_rank_wtt(), ts_rank_wttf(), ts_rankcd_wtt(), ts_rankcd_wttf(), tsq_mcontained(), tsquery_phrase(), tstz_dist(), varcharout(), and width_bucket_array().

#define PG_GETARG_FLOAT8 (   n)    DatumGetFloat8(PG_GETARG_DATUM(n))
#define PG_GETARG_HEAPTUPLEHEADER_COPY (   n)    DatumGetHeapTupleHeaderCopy(PG_GETARG_DATUM(n))

Definition at line 274 of file fmgr.h.

#define PG_GETARG_INT16 (   n)    DatumGetInt16(PG_GETARG_DATUM(n))
#define PG_GETARG_INT32 (   n)    DatumGetInt32(PG_GETARG_DATUM(n))

Definition at line 226 of file fmgr.h.

Referenced by _int_matchsel(), add_one(), array_in(), array_length(), array_lower(), array_position_common(), array_recv(), array_upper(), arraycontsel(), ascii_to_mic(), ascii_to_utf8(), be_lo_close(), be_lo_get_fragment(), be_lo_lseek(), be_lo_lseek64(), be_lo_open(), be_lo_tell(), be_lo_tell64(), be_lo_truncate(), be_lo_truncate64(), be_loread(), be_lowrite(), big5_to_euc_tw(), big5_to_mic(), big5_to_utf8(), bit(), bit_in(), bit_recv(), bitfromint4(), bitfromint8(), bitgetbit(), bitoverlay(), bitoverlay_no_len(), bitsetbit(), bitshiftleft(), bitshiftright(), bitsubstr(), bitsubstr_no_len(), bittypmodout(), bpchar(), bpcharin(), bpcharrecv(), bpchartypmodout(), btint24cmp(), btint42cmp(), btint48cmp(), btint4cmp(), btint84cmp(), bytea_substr(), bytea_substr_no_len(), byteaGetBit(), byteaGetByte(), byteaoverlay(), byteaoverlay_no_len(), byteaSetBit(), byteaSetByte(), c_overpaid(), cash_div_int4(), cash_mul_int4(), cidr_set_masklen(), circle_poly(), connectby_text(), connectby_text_serial(), cube_coord(), cube_coord_llur(), cube_enlarge(), cube_ll_coord(), cube_ur_coord(), cursor_to_xml(), date_mii(), date_pli(), daterange_subdiff(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dblink_fetch(), dintdict_lexize(), dispell_lexize(), dsimple_lexize(), dsnowball_lexize(), dsynonym_lexize(), dxsyn_lexize(), eqsel(), euc_cn_to_mic(), euc_cn_to_utf8(), euc_jis_2004_to_shift_jis_2004(), euc_jis_2004_to_utf8(), euc_jp_to_mic(), euc_jp_to_sjis(), euc_jp_to_utf8(), euc_kr_to_mic(), euc_kr_to_utf8(), euc_tw_to_big5(), euc_tw_to_mic(), euc_tw_to_utf8(), format_type(), g_cube_distance(), gb18030_to_utf8(), gbk_to_utf8(), gbt_int4_consistent(), gbt_int4_distance(), generate_series_step_int4(), generate_subscripts(), gin_consistent_hstore(), gin_consistent_jsonb(), gin_consistent_jsonb_path(), gin_trgm_consistent(), gin_trgm_triconsistent(), gin_triconsistent_jsonb(), gin_triconsistent_jsonb_path(), ginarrayconsistent(), ginarraytriconsistent(), ginint4_consistent(), hashint4(), i4tochar(), i4tod(), i4tof(), i4toi2(), idx(), inet_set_masklen(), int24div(), int24eq(), int24ge(), int24gt(), int24le(), int24lt(), int24mi(), int24mul(), int24ne(), int24pl(), int2shl(), int2shr(), int42div(), int42eq(), int42ge(), int42gt(), int42le(), int42lt(), int42mi(), int42mul(), int42ne(), int42pl(), int48(), int48div(), int48eq(), int48ge(), int48gt(), int48le(), int48lt(), int48mi(), int48mul(), int48ne(), int48pl(), int4_accum(), int4_accum_inv(), int4_avg_accum(), int4_avg_accum_inv(), int4_bool(), int4_cash(), int4_dist(), int4_mul_cash(), int4_numeric(), int4_sum(), int4_to_char(), int4abs(), int4and(), int4div(), int4eq(), int4ge(), int4gt(), int4inc(), int4larger(), int4le(), int4lt(), int4mi(), int4mod(), int4mul(), int4ne(), int4not(), int4or(), int4out(), int4pl(), int4range_subdiff(), int4send(), int4shl(), int4shr(), int4smaller(), int4um(), int4up(), int4xor(), int84div(), int84eq(), int84ge(), int84gt(), int84le(), int84lt(), int84mi(), int84mul(), int84ne(), int84pl(), int8shl(), int8shr(), intarray_del_elem(), intarray_push_elem(), interval_in(), interval_recv(), interval_scale(), intervaltypmodout(), intset(), intset_union_elem(), iso8859_1_to_utf8(), iso8859_to_utf8(), iso_to_koi8r(), iso_to_mic(), iso_to_win1251(), iso_to_win866(), johab_to_utf8(), json_array_element(), json_array_element_text(), jsonb_array_element(), jsonb_array_element_text(), jsonb_delete_idx(), koi8r_to_iso(), koi8r_to_mic(), koi8r_to_utf8(), koi8r_to_win1251(), koi8r_to_win866(), koi8u_to_utf8(), latin1_to_mic(), latin2_to_mic(), latin2_to_win1250(), latin3_to_mic(), latin4_to_mic(), levenshtein_less_equal(), levenshtein_less_equal_with_costs(), levenshtein_with_costs(), lpad(), ltree_index(), ltreeparentsel(), make_date(), make_interval(), make_time(), make_timestamp(), make_timestamptz(), make_timestamptz_at_timezone(), metaphone(), mic_to_ascii(), mic_to_big5(), mic_to_euc_cn(), mic_to_euc_jp(), mic_to_euc_kr(), mic_to_euc_tw(), mic_to_iso(), mic_to_koi8r(), mic_to_latin1(), mic_to_latin2(), mic_to_latin3(), mic_to_latin4(), mic_to_sjis(), mic_to_win1250(), mic_to_win1251(), mic_to_win866(), neqsel(), networksel(), numeric(), numeric_in(), numeric_recv(), numeric_round(), numeric_trunc(), numerictypmodout(), page_checksum(), patternsel(), pg_advisory_lock_int4(), pg_advisory_lock_shared_int4(), pg_advisory_unlock_int4(), pg_advisory_unlock_shared_int4(), pg_advisory_xact_lock_int4(), pg_advisory_xact_lock_shared_int4(), pg_blocking_pids(), pg_cancel_backend(), pg_describe_object(), pg_encoding_max_length_sql(), PG_encoding_to_char(), pg_gen_salt_rounds(), pg_get_function_arg_default(), pg_get_indexdef_ext(), pg_get_viewdef_wrap(), pg_identify_object(), pg_identify_object_as_address(), pg_index_column_has_property(), pg_logical_slot_get_changes_guts(), pg_random_bytes(), pg_stat_get_activity(), pg_stat_get_backend_activity(), pg_stat_get_backend_activity_start(), pg_stat_get_backend_client_addr(), pg_stat_get_backend_client_port(), pg_stat_get_backend_dbid(), pg_stat_get_backend_pid(), pg_stat_get_backend_start(), pg_stat_get_backend_userid(), pg_stat_get_backend_wait_event(), pg_stat_get_backend_wait_event_type(), pg_stat_get_backend_xact_start(), pg_terminate_backend(), pg_try_advisory_lock_int4(), pg_try_advisory_lock_shared_int4(), pg_try_advisory_xact_lock_int4(), pg_try_advisory_xact_lock_shared_int4(), prsd_start(), range_in(), range_recv(), rangesel(), record_in(), record_recv(), repeat(), rpad(), scalargtsel(), scalarltsel(), set_timetravel(), set_ttdummy(), shift_jis_2004_to_euc_jis_2004(), shift_jis_2004_to_utf8(), sjis_to_euc_jp(), sjis_to_mic(), sjis_to_utf8(), split_text(), subarray(), subltree(), subpath(), test_shm_mq(), test_shm_mq_pipelined(), testprs_start(), text_left(), text_right(), text_substr(), text_substr_no_len(), textoverlay(), textoverlay_no_len(), time_in(), time_recv(), time_scale(), timestamp_in(), timestamp_recv(), timestamp_scale(), timestamptypmodout(), timestamptz_in(), timestamptz_recv(), timestamptz_scale(), timestamptztypmodout(), timetypmodout(), timetz_in(), timetz_recv(), timetz_scale(), timetztypmodout(), to_ascii_enc(), to_hex32(), ts_rank_ttf(), ts_rank_wttf(), ts_rankcd_ttf(), ts_rankcd_wttf(), tsmatchsel(), tsquery_phrase_distance(), uhc_to_utf8(), unaccent_lexize(), utf8_to_ascii(), utf8_to_big5(), utf8_to_euc_cn(), utf8_to_euc_jis_2004(), utf8_to_euc_jp(), utf8_to_euc_kr(), utf8_to_euc_tw(), utf8_to_gb18030(), utf8_to_gbk(), utf8_to_iso8859(), utf8_to_iso8859_1(), utf8_to_johab(), utf8_to_koi8r(), utf8_to_koi8u(), utf8_to_shift_jis_2004(), utf8_to_sjis(), utf8_to_uhc(), utf8_to_win(), varbit(), varbit_in(), varbit_recv(), varbittypmodout(), varchar(), varcharin(), varcharrecv(), varchartypmodout(), wait_pid(), width_bucket_float8(), width_bucket_numeric(), win1250_to_latin2(), win1250_to_mic(), win1251_to_iso(), win1251_to_koi8r(), win1251_to_mic(), win1251_to_win866(), win866_to_iso(), win866_to_koi8r(), win866_to_mic(), win866_to_win1251(), win_to_utf8(), and worker_spi_launch().

#define PG_GETARG_INT64 (   n)    DatumGetInt64(PG_GETARG_DATUM(n))

Definition at line 239 of file fmgr.h.

Referenced by be_lo_get_fragment(), be_lo_lseek64(), be_lo_put(), be_lo_truncate64(), bitfromint8(), btint28cmp(), btint48cmp(), btint82cmp(), btint84cmp(), btint8cmp(), cash_div_int8(), cash_mul_int8(), gbt_int8_consistent(), gbt_int8_distance(), generate_series_step_int8(), hash_bitmap_info(), hashint8(), i8tod(), i8tof(), i8tooid(), inetmi_int8(), inetpl(), int28div(), int28eq(), int28ge(), int28gt(), int28le(), int28lt(), int28mi(), int28mul(), int28ne(), int28pl(), int2_sum(), int48div(), int48eq(), int48ge(), int48gt(), int48le(), int48lt(), int48mi(), int48mul(), int48ne(), int48pl(), int4_sum(), int82(), int82div(), int82eq(), int82ge(), int82gt(), int82le(), int82lt(), int82mi(), int82mul(), int82ne(), int82pl(), int84(), int84div(), int84eq(), int84ge(), int84gt(), int84le(), int84lt(), int84mi(), int84mul(), int84ne(), int84pl(), int8_avg_accum(), int8_avg_accum_inv(), int8_cash(), int8_dist(), int8_mul_cash(), int8_numeric(), int8_to_char(), int8abs(), int8and(), int8dec(), int8div(), int8eq(), int8ge(), int8gt(), int8inc(), int8larger(), int8le(), int8lt(), int8mi(), int8mod(), int8mul(), int8ne(), int8not(), int8or(), int8out(), int8pl(), int8range_subdiff(), int8send(), int8shl(), int8shr(), int8smaller(), int8um(), int8up(), int8xor(), numeric_fac(), pg_advisory_lock_int8(), pg_advisory_lock_shared_int8(), pg_advisory_unlock_int8(), pg_advisory_unlock_shared_int8(), pg_advisory_xact_lock_int8(), pg_advisory_xact_lock_shared_int8(), pg_freespace(), pg_prewarm(), pg_read_binary_file(), pg_read_file(), pg_size_pretty(), pg_try_advisory_lock_int8(), pg_try_advisory_lock_shared_int8(), pg_try_advisory_xact_lock_int8(), pg_try_advisory_xact_lock_shared_int8(), pg_visibility(), pg_visibility_map(), setval3_oid(), setval_oid(), test_shm_mq(), test_shm_mq_pipelined(), to_hex64(), txid_status(), and txid_visible_in_snapshot().

#define PG_GETARG_NAME (   n)    DatumGetName(PG_GETARG_DATUM(n))

Definition at line 235 of file fmgr.h.

Referenced by btnamecmp(), get_timetravel(), has_any_column_privilege_name_id(), has_any_column_privilege_name_name(), has_column_privilege_name_id_attnum(), has_column_privilege_name_id_name(), has_column_privilege_name_name_attnum(), has_column_privilege_name_name_name(), has_database_privilege_name_id(), has_database_privilege_name_name(), has_foreign_data_wrapper_privilege_name_id(), has_foreign_data_wrapper_privilege_name_name(), has_function_privilege_name_id(), has_function_privilege_name_name(), has_language_privilege_name_id(), has_language_privilege_name_name(), has_schema_privilege_name_id(), has_schema_privilege_name_name(), has_sequence_privilege_name_id(), has_sequence_privilege_name_name(), has_server_privilege_name_id(), has_server_privilege_name_name(), has_table_privilege_name_id(), has_table_privilege_name_name(), has_tablespace_privilege_name_id(), has_tablespace_privilege_name_name(), has_type_privilege_name_id(), has_type_privilege_name_name(), hashname(), length_in_encoding(), name_bpchar(), name_text(), nameeq(), namege(), namegt(), nameiclike(), nameicnlike(), nameicregexeq(), nameicregexne(), namele(), namelike(), namelt(), namene(), namenlike(), nameout(), nameregexeq(), nameregexne(), namesend(), PG_char_to_encoding(), pg_convert(), pg_create_logical_replication_slot(), pg_create_physical_replication_slot(), pg_database_size_name(), pg_drop_replication_slot(), pg_extension_update_paths(), pg_has_role_id_name(), pg_has_role_name(), pg_has_role_name_id(), pg_has_role_name_name(), pg_logical_slot_get_changes_guts(), pg_tablespace_size_name(), schema_to_xml(), schema_to_xml_and_xmlschema(), schema_to_xmlschema(), set_timetravel(), and to_ascii_encname().

#define PG_GETARG_OID (   n)    DatumGetObjectId(PG_GETARG_DATUM(n))

Definition at line 232 of file fmgr.h.

Referenced by acldefault_sql(), amvalidate(), array_in(), array_recv(), arraycontjoinsel(), arraycontsel(), be_lo_create(), be_lo_export(), be_lo_from_bytea(), be_lo_get(), be_lo_get_fragment(), be_lo_import_with_oid(), be_lo_open(), be_lo_put(), be_lo_unlink(), binary_upgrade_set_next_array_pg_type_oid(), binary_upgrade_set_next_heap_pg_class_oid(), binary_upgrade_set_next_index_pg_class_oid(), binary_upgrade_set_next_pg_authid_oid(), binary_upgrade_set_next_pg_enum_oid(), binary_upgrade_set_next_pg_type_oid(), binary_upgrade_set_next_toast_pg_class_oid(), binary_upgrade_set_next_toast_pg_type_oid(), bit_in(), bit_recv(), bpcharin(), bpcharrecv(), brin_inclusion_opcinfo(), brin_minmax_opcinfo(), brin_page_items(), brin_summarize_new_values(), bt_index_check(), bt_index_parent_check(), btoidcmp(), currtid_byreloid(), currval_oid(), dblink_fdw_validator(), domain_in(), domain_recv(), enum_cmp(), enum_eq(), enum_ge(), enum_gt(), enum_in(), enum_larger(), enum_le(), enum_lt(), enum_ne(), enum_out(), enum_range_bounds(), enum_recv(), enum_send(), enum_smaller(), eqjoinsel(), eqsel(), file_fdw_validator(), fmgr_c_validator(), fmgr_internal_validator(), fmgr_sql_validator(), format_type(), gbt_enum_consistent(), gbt_oid_consistent(), gbt_oid_distance(), gin_clean_pending_list(), gin_enum_cmp(), has_any_column_privilege_id(), has_any_column_privilege_id_id(), has_any_column_privilege_id_name(), has_any_column_privilege_name_id(), has_column_privilege_id_attnum(), has_column_privilege_id_id_attnum(), has_column_privilege_id_id_name(), has_column_privilege_id_name(), has_column_privilege_id_name_attnum(), has_column_privilege_id_name_name(), has_column_privilege_name_id_attnum(), has_column_privilege_name_id_name(), has_database_privilege_id(), has_database_privilege_id_id(), has_database_privilege_id_name(), has_database_privilege_name_id(), has_foreign_data_wrapper_privilege_id(), has_foreign_data_wrapper_privilege_id_id(), has_foreign_data_wrapper_privilege_id_name(), has_foreign_data_wrapper_privilege_name_id(), has_function_privilege_id(), has_function_privilege_id_id(), has_function_privilege_id_name(), has_function_privilege_name_id(), has_language_privilege_id(), has_language_privilege_id_id(), has_language_privilege_id_name(), has_language_privilege_name_id(), has_schema_privilege_id(), has_schema_privilege_id_id(), has_schema_privilege_id_name(), has_schema_privilege_name_id(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_id_name(), has_sequence_privilege_name_id(), has_server_privilege_id(), has_server_privilege_id_id(), has_server_privilege_id_name(), has_server_privilege_name_id(), has_table_privilege_id(), has_table_privilege_id_id(), has_table_privilege_id_name(), has_table_privilege_name_id(), has_tablespace_privilege_id(), has_tablespace_privilege_id_id(), has_tablespace_privilege_id_name(), has_tablespace_privilege_name_id(), has_type_privilege_id(), has_type_privilege_id_id(), has_type_privilege_id_name(), has_type_privilege_name_id(), hash_bitmap_info(), hashenum(), hashoid(), interval_in(), interval_recv(), ltreeparentsel(), makeaclitem(), neqjoinsel(), neqsel(), networkjoinsel(), networksel(), nextval_oid(), numeric_in(), numeric_recv(), oid_dist(), oideq(), oidge(), oidgt(), oidlarger(), oidle(), oidlt(), oidne(), oidout(), oidsend(), oidsmaller(), oidtoi8(), patternsel(), pg_check_frozen(), pg_check_visible(), pg_collation_actual_version(), pg_collation_is_visible(), pg_column_is_updatable(), pg_conversion_is_visible(), pg_database_size_oid(), pg_describe_object(), pg_extension_config_dump(), pg_filenode_relation(), pg_freespace(), pg_function_is_visible(), pg_get_constraintdef(), pg_get_constraintdef_ext(), pg_get_expr(), pg_get_expr_ext(), pg_get_function_arg_default(), pg_get_function_arguments(), pg_get_function_identity_arguments(), pg_get_function_result(), pg_get_functiondef(), pg_get_indexdef(), pg_get_indexdef_ext(), pg_get_partkeydef(), pg_get_replica_identity_index(), pg_get_ruledef(), pg_get_ruledef_ext(), pg_get_statisticsextdef(), pg_get_triggerdef(), pg_get_triggerdef_ext(), pg_get_userbyid(), pg_get_viewdef(), pg_get_viewdef_ext(), pg_get_viewdef_wrap(), pg_has_role_id(), pg_has_role_id_id(), pg_has_role_id_name(), pg_has_role_name_id(), pg_identify_object(), pg_identify_object_as_address(), pg_import_system_collations(), pg_index_column_has_property(), pg_index_has_property(), pg_indexam_has_property(), pg_indexes_size(), pg_is_other_temp_schema(), pg_opclass_is_visible(), pg_operator_is_visible(), pg_opfamily_is_visible(), pg_prewarm(), pg_relation_filenode(), pg_relation_filepath(), pg_relation_is_updatable(), pg_relation_size(), pg_relpagesbyid(), pg_relpagesbyid_v1_5(), pg_sequence_last_value(), pg_sequence_parameters(), pg_stat_get_analyze_count(), pg_stat_get_autoanalyze_count(), pg_stat_get_autovacuum_count(), pg_stat_get_blocks_fetched(), pg_stat_get_blocks_hit(), pg_stat_get_db_blk_read_time(), pg_stat_get_db_blk_write_time(), pg_stat_get_db_blocks_fetched(), pg_stat_get_db_blocks_hit(), pg_stat_get_db_conflict_all(), pg_stat_get_db_conflict_bufferpin(), pg_stat_get_db_conflict_lock(), pg_stat_get_db_conflict_snapshot(), pg_stat_get_db_conflict_startup_deadlock(), pg_stat_get_db_conflict_tablespace(), pg_stat_get_db_deadlocks(), pg_stat_get_db_numbackends(), pg_stat_get_db_stat_reset_time(), pg_stat_get_db_temp_bytes(), pg_stat_get_db_temp_files(), pg_stat_get_db_tuples_deleted(), pg_stat_get_db_tuples_fetched(), pg_stat_get_db_tuples_inserted(), pg_stat_get_db_tuples_returned(), pg_stat_get_db_tuples_updated(), pg_stat_get_db_xact_commit(), pg_stat_get_db_xact_rollback(), pg_stat_get_dead_tuples(), pg_stat_get_function_calls(), pg_stat_get_function_self_time(), pg_stat_get_function_total_time(), pg_stat_get_last_analyze_time(), pg_stat_get_last_autoanalyze_time(), pg_stat_get_last_autovacuum_time(), pg_stat_get_last_vacuum_time(), pg_stat_get_live_tuples(), pg_stat_get_mod_since_analyze(), pg_stat_get_numscans(), pg_stat_get_subscription(), pg_stat_get_tuples_deleted(), pg_stat_get_tuples_fetched(), pg_stat_get_tuples_hot_updated(), pg_stat_get_tuples_inserted(), pg_stat_get_tuples_returned(), pg_stat_get_tuples_updated(), pg_stat_get_vacuum_count(), pg_stat_get_xact_blocks_fetched(), pg_stat_get_xact_blocks_hit(), pg_stat_get_xact_function_calls(), pg_stat_get_xact_function_self_time(), pg_stat_get_xact_function_total_time(), pg_stat_get_xact_numscans(), pg_stat_get_xact_tuples_deleted(), pg_stat_get_xact_tuples_fetched(), pg_stat_get_xact_tuples_hot_updated(), pg_stat_get_xact_tuples_inserted(), pg_stat_get_xact_tuples_returned(), pg_stat_get_xact_tuples_updated(), pg_stat_reset_single_function_counters(), pg_stat_reset_single_table_counters(), pg_table_is_visible(), pg_table_size(), pg_tablespace_databases(), pg_tablespace_location(), pg_tablespace_size_oid(), pg_total_relation_size(), pg_truncate_visibility_map(), pg_ts_config_is_visible(), pg_ts_dict_is_visible(), pg_ts_parser_is_visible(), pg_ts_template_is_visible(), pg_type_is_visible(), pg_visibility(), pg_visibility_map(), pg_visibility_map_rel(), pg_visibility_map_summary(), pg_visibility_rel(), pgstatginindex(), pgstatginindex_v1_5(), pgstathashindex(), pgstatindexbyid(), pgstatindexbyid_v1_5(), pgstattuple_approx(), pgstattuple_approx_v1_5(), pgstattuplebyid(), pgstattuplebyid_v1_5(), phraseto_tsquery_byid(), plainto_tsquery_byid(), plperl_validator(), plpgsql_validator(), plpython_validator(), postgres_fdw_validator(), postgresql_fdw_validator(), range_in(), range_recv(), rangesel(), record_in(), record_recv(), regclassout(), regconfigout(), regdictionaryout(), regnamespaceout(), regoperatorout(), regoperout(), regprocedureout(), regprocout(), regroleout(), regtypeout(), row_security_active(), scalargtsel(), scalarltsel(), setval3_oid(), setval_oid(), table_to_xml(), table_to_xml_and_xmlschema(), table_to_xmlschema(), time_in(), time_recv(), timestamp_in(), timestamp_recv(), timestamptz_in(), timestamptz_recv(), timetz_in(), timetz_recv(), to_tsquery_byid(), to_tsvector_byid(), ts_headline_byid_opt(), ts_lexize(), ts_parse_byid(), ts_token_type_byid(), tsmatchsel(), tuple_data_split(), unaccent_dict(), varbit_in(), varbit_recv(), varcharin(), and varcharrecv().

#define PG_GETARG_POINTER (   n)    DatumGetPointer(PG_GETARG_DATUM(n))

Definition at line 233 of file fmgr.h.

Referenced by _int_different(), _int_matchsel(), _ltree_compress(), _ltree_consistent(), _ltree_penalty(), _ltree_picksplit(), _ltree_same(), _ltree_union(), abstimerecv(), array_agg_array_finalfn(), array_agg_array_transfn(), array_agg_finalfn(), array_agg_transfn(), array_recv(), array_typanalyze(), arraycontsel(), bit_recv(), bool_accum(), bool_accum_inv(), bool_alltrue(), bool_anytrue(), boolrecv(), box_recv(), bpchar_sortsupport(), bpcharrecv(), bqarr_in(), brin_inclusion_add_value(), brin_inclusion_consistent(), brin_inclusion_union(), brin_minmax_add_value(), brin_minmax_consistent(), brin_minmax_union(), btbpchar_pattern_sortsupport(), btfloat4sortsupport(), btfloat8sortsupport(), btint2sortsupport(), btint4sortsupport(), btint8sortsupport(), btnamesortsupport(), btoidsortsupport(), btoidvectorcmp(), bttext_pattern_sortsupport(), bttextsortsupport(), bytea_sortsupport(), bytea_string_agg_finalfn(), bytea_string_agg_transfn(), bytearecv(), cash_recv(), charrecv(), chkpass_eq(), chkpass_ne(), chkpass_out(), chkpass_rout(), cidr_recv(), cidrecv(), circle_recv(), complex_abs_cmp(), complex_abs_eq(), complex_abs_ge(), complex_abs_gt(), complex_abs_le(), complex_abs_lt(), complex_add(), complex_out(), complex_recv(), complex_send(), cstring_recv(), date_recv(), date_sortsupport(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dintdict_init(), dintdict_lexize(), dispell_init(), dispell_lexize(), domain_recv(), dsimple_init(), dsimple_lexize(), dsnowball_init(), dsnowball_lexize(), dsynonym_init(), dsynonym_lexize(), dxsyn_init(), dxsyn_lexize(), enum_recv(), eqjoinsel(), eqsel(), float4recv(), float8recv(), g_cube_consistent(), g_cube_decompress(), g_cube_distance(), g_cube_penalty(), g_cube_picksplit(), g_cube_same(), g_cube_union(), g_int_compress(), g_int_consistent(), g_int_decompress(), g_int_penalty(), g_int_picksplit(), g_int_same(), g_int_union(), g_intbig_compress(), g_intbig_consistent(), g_intbig_penalty(), g_intbig_picksplit(), g_intbig_same(), g_intbig_union(), gbt_bit_compress(), gbt_bit_consistent(), gbt_bit_penalty(), gbt_bit_picksplit(), gbt_bit_same(), gbt_bit_union(), gbt_bpchar_compress(), gbt_bpchar_consistent(), gbt_bytea_compress(), gbt_bytea_consistent(), gbt_bytea_penalty(), gbt_bytea_picksplit(), gbt_bytea_same(), gbt_bytea_union(), gbt_cash_compress(), gbt_cash_consistent(), gbt_cash_distance(), gbt_cash_fetch(), gbt_cash_penalty(), gbt_cash_picksplit(), gbt_cash_same(), gbt_cash_union(), gbt_date_compress(), gbt_date_consistent(), gbt_date_distance(), gbt_date_fetch(), gbt_date_penalty(), gbt_date_picksplit(), gbt_date_same(), gbt_date_union(), gbt_decompress(), gbt_enum_compress(), gbt_enum_consistent(), gbt_enum_fetch(), gbt_enum_penalty(), gbt_enum_picksplit(), gbt_enum_same(), gbt_enum_union(), gbt_float4_compress(), gbt_float4_consistent(), gbt_float4_distance(), gbt_float4_fetch(), gbt_float4_penalty(), gbt_float4_picksplit(), gbt_float4_same(), gbt_float4_union(), gbt_float8_compress(), gbt_float8_consistent(), gbt_float8_distance(), gbt_float8_fetch(), gbt_float8_penalty(), gbt_float8_picksplit(), gbt_float8_same(), gbt_float8_union(), gbt_inet_compress(), gbt_inet_consistent(), gbt_inet_penalty(), gbt_inet_picksplit(), gbt_inet_same(), gbt_inet_union(), gbt_int2_compress(), gbt_int2_consistent(), gbt_int2_distance(), gbt_int2_fetch(), gbt_int2_penalty(), gbt_int2_picksplit(), gbt_int2_same(), gbt_int2_union(), gbt_int4_compress(), gbt_int4_consistent(), gbt_int4_distance(), gbt_int4_fetch(), gbt_int4_penalty(), gbt_int4_picksplit(), gbt_int4_same(), gbt_int4_union(), gbt_int8_compress(), gbt_int8_consistent(), gbt_int8_distance(), gbt_int8_fetch(), gbt_int8_penalty(), gbt_int8_picksplit(), gbt_int8_same(), gbt_int8_union(), gbt_intv_compress(), gbt_intv_consistent(), gbt_intv_decompress(), gbt_intv_distance(), gbt_intv_fetch(), gbt_intv_penalty(), gbt_intv_picksplit(), gbt_intv_same(), gbt_intv_union(), gbt_macad8_compress(), gbt_macad8_consistent(), gbt_macad8_fetch(), gbt_macad8_penalty(), gbt_macad8_picksplit(), gbt_macad8_same(), gbt_macad8_union(), gbt_macad_compress(), gbt_macad_consistent(), gbt_macad_fetch(), gbt_macad_penalty(), gbt_macad_picksplit(), gbt_macad_same(), gbt_macad_union(), gbt_numeric_compress(), gbt_numeric_consistent(), gbt_numeric_penalty(), gbt_numeric_picksplit(), gbt_numeric_same(), gbt_numeric_union(), gbt_oid_compress(), gbt_oid_consistent(), gbt_oid_distance(), gbt_oid_fetch(), gbt_oid_penalty(), gbt_oid_picksplit(), gbt_oid_same(), gbt_oid_union(), gbt_text_compress(), gbt_text_consistent(), gbt_text_penalty(), gbt_text_picksplit(), gbt_text_same(), gbt_text_union(), gbt_time_compress(), gbt_time_consistent(), gbt_time_distance(), gbt_time_fetch(), gbt_time_penalty(), gbt_time_picksplit(), gbt_time_same(), gbt_time_union(), gbt_timetz_compress(), gbt_timetz_consistent(), gbt_ts_compress(), gbt_ts_consistent(), gbt_ts_distance(), gbt_ts_fetch(), gbt_ts_penalty(), gbt_ts_picksplit(), gbt_ts_same(), gbt_ts_union(), gbt_tstz_compress(), gbt_tstz_consistent(), gbt_tstz_distance(), gbt_uuid_compress(), gbt_uuid_consistent(), gbt_uuid_fetch(), gbt_uuid_penalty(), gbt_uuid_picksplit(), gbt_uuid_same(), gbt_uuid_union(), gbt_var_decompress(), gbt_var_fetch(), get_altertable_subcmdtypes(), get_command_tag(), get_command_type(), ghstore_compress(), ghstore_consistent(), ghstore_decompress(), ghstore_penalty(), ghstore_picksplit(), ghstore_same(), ghstore_union(), gin_btree_compare_prefix(), gin_btree_consistent(), gin_btree_extract_query(), gin_btree_extract_value(), gin_cmp_prefix(), gin_consistent_hstore(), gin_consistent_jsonb(), gin_consistent_jsonb_path(), gin_extract_hstore(), gin_extract_hstore_query(), gin_extract_jsonb(), gin_extract_jsonb_path(), gin_extract_jsonb_query(), gin_extract_jsonb_query_path(), gin_extract_query_trgm(), gin_extract_tsquery(), gin_extract_tsvector(), gin_extract_value_trgm(), gin_numeric_cmp(), gin_trgm_consistent(), gin_trgm_triconsistent(), gin_triconsistent_jsonb(), gin_triconsistent_jsonb_path(), gin_tsquery_consistent(), gin_tsquery_triconsistent(), ginarrayconsistent(), ginarrayextract(), ginarraytriconsistent(), ginint4_consistent(), ginint4_queryextract(), ginqueryarrayextract(), gist_box_compress(), gist_box_consistent(), gist_box_decompress(), gist_box_fetch(), gist_box_penalty(), gist_box_picksplit(), gist_box_same(), gist_box_union(), gist_circle_compress(), gist_circle_consistent(), gist_circle_distance(), gist_point_compress(), gist_point_consistent(), gist_point_distance(), gist_point_fetch(), gist_poly_compress(), gist_poly_consistent(), gist_poly_distance(), gtrgm_compress(), gtrgm_consistent(), gtrgm_decompress(), gtrgm_distance(), gtrgm_penalty(), gtrgm_picksplit(), gtrgm_same(), gtrgm_union(), gtsquery_compress(), gtsquery_consistent(), gtsquery_penalty(), gtsquery_picksplit(), gtsquery_same(), gtsquery_union(), gtsvector_compress(), gtsvector_consistent(), gtsvector_decompress(), gtsvector_penalty(), gtsvector_picksplit(), gtsvector_same(), gtsvector_union(), gtsvectorout(), hashoidvector(), hstore_recv(), hypothetical_dense_rank_final(), hypothetical_rank_common(), inet_gist_compress(), inet_gist_consistent(), inet_gist_decompress(), inet_gist_fetch(), inet_gist_penalty(), inet_gist_picksplit(), inet_gist_same(), inet_gist_union(), inet_recv(), inet_spg_choose(), inet_spg_config(), inet_spg_inner_consistent(), inet_spg_leaf_consistent(), inet_spg_picksplit(), int2_accum(), int2_accum_inv(), int2_sum(), int2recv(), int2vectorout(), int2vectorrecv(), int44out(), int4_accum(), int4_accum_inv(), int4_sum(), int4recv(), int8_accum(), int8_accum_inv(), int8_avg_accum(), int8_avg_accum_inv(), int8_avg_combine(), int8_avg_serialize(), int8dec(), int8inc(), int8recv(), interval_recv(), interval_transform(), json_agg_finalfn(), json_agg_transfn(), json_object_agg_finalfn(), json_object_agg_transfn(), json_recv(), jsonb_agg_finalfn(), jsonb_agg_transfn(), jsonb_build_array(), jsonb_build_object(), jsonb_object_agg_finalfn(), jsonb_object_agg_transfn(), jsonb_recv(), line_recv(), lquery_in(), lseg_recv(), ltree_compress(), ltree_consistent(), ltree_decompress(), ltree_in(), ltree_penalty(), ltree_picksplit(), ltree_same(), ltree_union(), ltreeparentsel(), ltxtq_in(), macaddr8_recv(), macaddr_recv(), mode_final(), namerecv(), neqjoinsel(), neqsel(), networkjoinsel(), networksel(), numeric_accum(), numeric_accum_inv(), numeric_avg(), numeric_avg_accum(), numeric_avg_combine(), numeric_avg_serialize(), numeric_combine(), numeric_poly_avg(), numeric_poly_combine(), numeric_poly_serialize(), numeric_poly_stddev_pop(), numeric_poly_stddev_samp(), numeric_poly_sum(), numeric_poly_var_pop(), numeric_poly_var_samp(), numeric_recv(), numeric_serialize(), numeric_sortsupport(), numeric_stddev_pop(), numeric_stddev_samp(), numeric_sum(), numeric_transform(), numeric_var_pop(), numeric_var_samp(), oidrecv(), oidvectorout(), oidvectorrecv(), oidvectortypes(), ordered_set_transition(), ordered_set_transition_multi(), path_recv(), patternsel(), percentile_cont_final_common(), percentile_cont_multi_final_common(), percentile_disc_final(), percentile_disc_multi_final(), pg_lsn_recv(), plperl_inline_handler(), plperl_to_hstore(), plpython_to_hstore(), point_recv(), poly_recv(), prsd_end(), prsd_headline(), prsd_nexttoken(), prsd_start(), pt_in_widget(), range_gist_compress(), range_gist_consistent(), range_gist_decompress(), range_gist_fetch(), range_gist_penalty(), range_gist_picksplit(), range_gist_same(), range_gist_union(), range_recv(), range_typanalyze(), rangesel(), record_recv(), regress_putenv(), reltimerecv(), scalargtsel(), scalarltsel(), seg_center(), seg_lower(), seg_out(), seg_size(), seg_upper(), spg_box_quad_choose(), spg_box_quad_config(), spg_box_quad_inner_consistent(), spg_box_quad_leaf_consistent(), spg_box_quad_picksplit(), spg_kd_choose(), spg_kd_config(), spg_kd_inner_consistent(), spg_kd_picksplit(), spg_quad_choose(), spg_quad_config(), spg_quad_inner_consistent(), spg_quad_leaf_consistent(), spg_quad_picksplit(), spg_range_quad_choose(), spg_range_quad_config(), spg_range_quad_inner_consistent(), spg_range_quad_leaf_consistent(), spg_range_quad_picksplit(), spg_text_choose(), spg_text_config(), spg_text_inner_consistent(), spg_text_leaf_consistent(), spg_text_picksplit(), string_agg_finalfn(), string_agg_transfn(), testprs_end(), testprs_getlexeme(), testprs_start(), textrecv(), thesaurus_init(), thesaurus_lexize(), tidrecv(), time_recv(), time_transform(), timestamp_recv(), timestamp_sortsupport(), timestamp_transform(), timestamptz_recv(), timetz_recv(), tintervalrecv(), ts_headline_byid_opt(), ts_typanalyze(), tsmatchsel(), tsqueryrecv(), tsvectorrecv(), txid_snapshot_recv(), unaccent_init(), unaccent_lexize(), unknownrecv(), uuid_recv(), uuid_sortsupport(), varbit_recv(), varbit_transform(), varchar_transform(), varcharrecv(), xidrecv(), and xml_recv().

#define PG_GETARG_RAW_VARLENA_P (   n)    ((struct varlena *) PG_GETARG_POINTER(n))

Definition at line 241 of file fmgr.h.

#define PG_GETARG_TEXT_P (   n)    DatumGetTextP(PG_GETARG_DATUM(n))

Definition at line 292 of file fmgr.h.

Referenced by gtrgm_consistent(), and gtrgm_distance().

#define PG_GETARG_TEXT_P_COPY (   n)    DatumGetTextPCopy(PG_GETARG_DATUM(n))
#define PG_GETARG_TEXT_P_SLICE (   n,
  a,
 
)    DatumGetTextPSlice(PG_GETARG_DATUM(n),a,b)

Definition at line 277 of file fmgr.h.

#define PG_GETARG_TEXT_PP (   n)    DatumGetTextPP(PG_GETARG_DATUM(n))

Definition at line 265 of file fmgr.h.

Referenced by array_to_text(), array_to_text_null(), ascii(), be_lo_export(), be_lo_import(), be_lo_import_with_oid(), binary_decode(), binary_upgrade_create_empty_extension(), bt_metap(), bt_page_items(), bt_page_stats(), btrim(), btrim1(), bttext_pattern_cmp(), bttextcmp(), chkpass_eq(), chkpass_ne(), citext_cmp(), citext_eq(), citext_ge(), citext_gt(), citext_hash(), citext_larger(), citext_le(), citext_lt(), citext_ne(), citext_smaller(), concat_text(), connectby_text(), connectby_text_serial(), copytext(), crosstab(), crosstab_hash(), currtid_byrelname(), cursor_to_xml(), cursor_to_xmlschema(), database_to_xml(), database_to_xml_and_xmlschema(), database_to_xmlschema(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dblink_cancel_query(), dblink_close(), dblink_connect(), dblink_disconnect(), dblink_error_message(), dblink_exec(), dblink_fetch(), dblink_get_notify(), dblink_get_pkey(), dblink_is_busy(), dblink_open(), dblink_record_internal(), dblink_send_query(), difference(), dmetaphone(), dmetaphone_alt(), each_worker(), elements_worker(), float4_to_char(), float8_to_char(), get_path_all(), get_raw_page(), get_raw_page_fork(), ghstore_consistent(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_compare_jsonb(), gin_extract_hstore_query(), gin_extract_jsonb_query(), gin_extract_query_trgm(), gin_extract_value_trgm(), has_any_column_privilege_id(), has_any_column_privilege_id_id(), has_any_column_privilege_id_name(), has_any_column_privilege_name(), has_any_column_privilege_name_id(), has_any_column_privilege_name_name(), has_column_privilege_id_attnum(), has_column_privilege_id_id_attnum(), has_column_privilege_id_id_name(), has_column_privilege_id_name(), has_column_privilege_id_name_attnum(), has_column_privilege_id_name_name(), has_column_privilege_name_attnum(), has_column_privilege_name_id_attnum(), has_column_privilege_name_id_name(), has_column_privilege_name_name(), has_column_privilege_name_name_attnum(), has_column_privilege_name_name_name(), has_database_privilege_id(), has_database_privilege_id_id(), has_database_privilege_id_name(), has_database_privilege_name(), has_database_privilege_name_id(), has_database_privilege_name_name(), has_foreign_data_wrapper_privilege_id(), has_foreign_data_wrapper_privilege_id_id(), has_foreign_data_wrapper_privilege_id_name(), has_foreign_data_wrapper_privilege_name(), has_foreign_data_wrapper_privilege_name_id(), has_foreign_data_wrapper_privilege_name_name(), has_function_privilege_id(), has_function_privilege_id_id(), has_function_privilege_id_name(), has_function_privilege_name(), has_function_privilege_name_id(), has_function_privilege_name_name(), has_language_privilege_id(), has_language_privilege_id_id(), has_language_privilege_id_name(), has_language_privilege_name(), has_language_privilege_name_id(), has_language_privilege_name_name(), has_schema_privilege_id(), has_schema_privilege_id_id(), has_schema_privilege_id_name(), has_schema_privilege_name(), has_schema_privilege_name_id(), has_schema_privilege_name_name(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_id_name(), has_sequence_privilege_name(), has_sequence_privilege_name_id(), has_sequence_privilege_name_name(), has_server_privilege_id(), has_server_privilege_id_id(), has_server_privilege_id_name(), has_server_privilege_name(), has_server_privilege_name_id(), has_server_privilege_name_name(), has_table_privilege_id(), has_table_privilege_id_id(), has_table_privilege_id_name(), has_table_privilege_name(), has_table_privilege_name_id(), has_table_privilege_name_name(), has_tablespace_privilege_id(), has_tablespace_privilege_id_id(), has_tablespace_privilege_id_name(), has_tablespace_privilege_name(), has_tablespace_privilege_name_id(), has_tablespace_privilege_name_name(), has_type_privilege_id(), has_type_privilege_id_id(), has_type_privilege_id_name(), has_type_privilege_name(), has_type_privilege_name_id(), has_type_privilege_name_name(), hashtext(), hstore_defined(), hstore_delete(), hstore_exists(), hstore_fetchval(), hstore_from_text(), initcap(), int4_to_char(), int8_to_char(), interval_part(), interval_to_char(), interval_trunc(), json_array_element(), json_array_element_text(), json_array_length(), json_object_field(), json_object_field_text(), json_object_keys(), json_send(), json_strip_nulls(), json_typeof(), jsonb_delete(), jsonb_exists(), jsonb_object_field(), jsonb_object_field_text(), levenshtein(), levenshtein_less_equal(), levenshtein_less_equal_with_costs(), levenshtein_with_costs(), like_escape(), lower(), lpad(), ltree_addtext(), ltree_textadd(), ltrim(), ltrim1(), make_timestamptz_at_timezone(), makeaclitem(), md5_text(), nameiclike(), nameicnlike(), nameicregexeq(), nameicregexne(), namelike(), namenlike(), nameregexeq(), nameregexne(), nextval(), numeric_to_char(), numeric_to_number(), parse_ident(), pg_create_restore_point(), pg_crypt(), pg_current_logfile(), pg_dearmor(), pg_decrypt(), pg_decrypt_iv(), pg_digest(), pg_encrypt(), pg_encrypt_iv(), pg_extension_config_dump(), pg_file_rename(), pg_file_unlink(), pg_file_write(), pg_gen_salt(), pg_gen_salt_rounds(), pg_get_expr(), pg_get_expr_ext(), pg_get_publication_tables(), pg_get_serial_sequence(), pg_get_viewdef_name(), pg_get_viewdef_name_ext(), pg_has_role_id(), pg_has_role_id_id(), pg_has_role_id_name(), pg_has_role_name(), pg_has_role_name_id(), pg_has_role_name_name(), pg_hmac(), pg_index_column_has_property(), pg_index_has_property(), pg_indexam_has_property(), pg_logical_emit_message_bytea(), pg_ls_dir(), pg_notify(), pg_prewarm(), pg_read_binary_file(), pg_read_file(), pg_relation_size(), pg_relpages(), pg_relpages_v1_5(), pg_replication_origin_advance(), pg_size_bytes(), pg_start_backup(), pg_stat_file(), pg_stat_get_progress_info(), pg_stat_reset_shared(), pgp_armor_headers(), pgrowlocks(), pgstatindex(), pgstatindex_v1_5(), pgstattuple(), pgstattuple_v1_5(), phraseto_tsquery(), phraseto_tsquery_byid(), plainto_tsquery(), plainto_tsquery_byid(), populate_record_worker(), populate_recordset_worker(), query_to_xml(), query_to_xml_and_xmlschema(), query_to_xmlschema(), quote_ident(), quote_literal(), range_constructor3(), regexp_match(), regexp_matches(), regexp_split_to_array(), regexp_split_to_table(), repeat(), replace_text(), row_security_active_name(), rpad(), rtrim(), rtrim1(), schema_to_xml(), schema_to_xml_and_xmlschema(), schema_to_xmlschema(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), show_trgm(), similar_escape(), similarity(), sort(), soundex(), split_text(), ssl_client_dn_field(), ssl_issuer_field(), string_agg_transfn(), table_to_xml(), table_to_xml_and_xmlschema(), table_to_xmlschema(), test_shm_mq(), test_shm_mq_pipelined(), text2ltree(), text_char(), text_concat_ws(), text_format(), text_ge(), text_gt(), text_larger(), text_le(), text_left(), text_lt(), text_name(), text_pattern_ge(), text_pattern_gt(), text_pattern_le(), text_pattern_lt(), text_regclass(), text_reverse(), text_right(), text_smaller(), text_to_array_internal(), textcat(), texticlike(), texticnlike(), texticregexeq(), texticregexne(), textlike(), textnlike(), textoverlay(), textoverlay_no_len(), textpos(), textregexeq(), textregexne(), textregexreplace(), textregexreplace_noopt(), textregexsubstr(), textsend(), texttoxml(), time_part(), timestamp_part(), timestamp_to_char(), timestamp_trunc(), timestamp_zone(), timestamptz_part(), timestamptz_to_char(), timestamptz_trunc(), timestamptz_zone(), timetz_part(), timetz_zone(), to_date(), to_regclass(), to_regnamespace(), to_regoper(), to_regoperator(), to_regproc(), to_regprocedure(), to_regrole(), to_regtype(), to_timestamp(), to_tsquery(), to_tsquery_byid(), to_tsvector(), to_tsvector_byid(), translate(), ts_headline_byid_opt(), ts_lexize(), ts_parse_byid(), ts_parse_byname(), ts_stat1(), ts_stat2(), ts_token_type_byname(), tsquery_rewrite_query(), tsvector_delete_str(), tuple_data_split(), unaccent_dict(), upper(), uuid_generate_v3(), uuid_generate_v5(), word_similarity(), word_similarity_commutator_op(), word_similarity_dist_commutator_op(), word_similarity_dist_op(), word_similarity_op(), xml_encode_special_chars(), xml_is_well_formed(), xml_is_well_formed_content(), xml_is_well_formed_document(), xmlcomment(), xmlexists(), xpath(), xpath_bool(), xpath_exists(), xpath_list(), xpath_nodeset(), xpath_number(), xpath_string(), xpath_table(), and xslt_process().

#define PG_GETARG_UINT16 (   n)    DatumGetUInt16(PG_GETARG_DATUM(n))
#define PG_GETARG_VARCHAR_P (   n)    DatumGetVarCharP(PG_GETARG_DATUM(n))

Definition at line 294 of file fmgr.h.

#define PG_GETARG_VARCHAR_P_COPY (   n)    DatumGetVarCharPCopy(PG_GETARG_DATUM(n))

Definition at line 273 of file fmgr.h.

#define PG_GETARG_VARCHAR_P_SLICE (   n,
  a,
 
)    DatumGetVarCharPSlice(PG_GETARG_DATUM(n),a,b)

Definition at line 279 of file fmgr.h.

#define PG_GETARG_VARCHAR_PP (   n)    DatumGetVarCharPP(PG_GETARG_DATUM(n))

Definition at line 267 of file fmgr.h.

Referenced by varchar().

#define PG_GETARG_VARLENA_PP (   n)    PG_DETOAST_DATUM_PACKED(PG_GETARG_DATUM(n))

Definition at line 245 of file fmgr.h.

Referenced by hashvarlena().

#define PG_MAGIC_FUNCTION_NAME   Pg_magic_func

Definition at line 432 of file fmgr.h.

#define PG_MAGIC_FUNCTION_NAME_STRING   "Pg_magic_func"

Definition at line 433 of file fmgr.h.

Referenced by internal_load_library().

#define PG_MODULE_MAGIC
Value:
{ \
static const Pg_magic_struct Pg_magic_data = PG_MODULE_MAGIC_DATA; \
return &Pg_magic_data; \
} \
extern int no_such_variable
#define PGDLLEXPORT
Definition: c.h:1066
#define PG_MODULE_MAGIC_DATA
Definition: fmgr.h:415
#define PG_MAGIC_FUNCTION_NAME
Definition: fmgr.h:432

Definition at line 435 of file fmgr.h.

#define PG_MODULE_MAGIC_DATA
Value:
{ \
sizeof(Pg_magic_struct), \
PG_VERSION_NUM / 100, \
FLOAT4PASSBYVAL, \
FLOAT8PASSBYVAL \
}
#define FUNC_MAX_ARGS
#define NAMEDATALEN
#define INDEX_MAX_KEYS

Definition at line 415 of file fmgr.h.

#define PG_RETURN_BOOL (   x)    return BoolGetDatum(x)

Definition at line 311 of file fmgr.h.

Referenced by _int_contains(), _int_different(), _int_overlap(), _int_same(), _lt_q_regex(), _ltq_regex(), _ltree_consistent(), _ltree_isparent(), _ltree_risparent(), _ltxtq_exec(), abstime_finite(), abstimeeq(), abstimege(), abstimegt(), abstimele(), abstimelt(), abstimene(), accept_weak_input(), aclcontains(), aclitem_eq(), amvalidate(), array_eq(), array_ge(), array_gt(), array_le(), array_lt(), array_ne(), array_typanalyze(), arraycontained(), arraycontains(), arrayoverlap(), biteq(), bitge(), bitgt(), bitle(), bitlt(), bitne(), bool_alltrue(), bool_anytrue(), booland_statefunc(), booleq(), boolge(), boolgt(), boolin(), boolle(), boollt(), boolne(), boolop(), boolor_statefunc(), boolrecv(), box_above(), box_above_eq(), box_below(), box_below_eq(), box_contain(), box_contain_pt(), box_contained(), box_eq(), box_ge(), box_gt(), box_le(), box_left(), box_lt(), box_overabove(), box_overbelow(), box_overlap(), box_overleft(), box_overright(), box_right(), box_same(), bpchar_pattern_ge(), bpchar_pattern_gt(), bpchar_pattern_le(), bpchar_pattern_lt(), bpchareq(), bpcharge(), bpchargt(), bpcharle(), bpcharlt(), bpcharne(), brin_inclusion_add_value(), brin_inclusion_consistent(), brin_minmax_add_value(), brin_minmax_consistent(), byteaeq(), byteage(), byteagt(), byteale(), bytealike(), bytealt(), byteane(), byteanlike(), c_overpaid(), cash_eq(), cash_ge(), cash_gt(), cash_le(), cash_lt(), cash_ne(), chareq(), charge(), chargt(), charle(), charlt(), charne(), chkpass_eq(), chkpass_ne(), cideq(), circle_above(), circle_below(), circle_contain(), circle_contain_pt(), circle_contained(), circle_eq(), circle_ge(), circle_gt(), circle_le(), circle_left(), circle_lt(), circle_ne(), circle_overabove(), circle_overbelow(), circle_overlap(), circle_overleft(), circle_overright(), circle_right(), circle_same(), citext_eq(), citext_ge(), citext_gt(), citext_le(), citext_lt(), citext_ne(), complex_abs_eq(), complex_abs_ge(), complex_abs_gt(), complex_abs_le(), complex_abs_lt(), cube_contained(), cube_contains(), cube_eq(), cube_ge(), cube_gt(), cube_is_point(), cube_le(), cube_lt(), cube_ne(), cube_overlap(), date_eq(), date_eq_timestamp(), date_eq_timestamptz(), date_finite(), date_ge(), date_ge_timestamp(), date_ge_timestamptz(), date_gt(), date_gt_timestamp(), date_gt_timestamptz(), date_le(), date_le_timestamp(), date_le_timestamptz(), date_lt(), date_lt_timestamp(), date_lt_timestamptz(), date_ne(), date_ne_timestamp(), date_ne_timestamptz(), elem_contained_by_range(), enum_eq(), enum_ge(), enum_gt(), enum_le(), enum_lt(), enum_ne(), float48eq(), float48ge(), float48gt(), float48le(), float48lt(), float48ne(), float4eq(), float4ge(), float4gt(), float4le(), float4lt(), float4ne(), float84eq(), float84ge(), float84gt(), float84le(), float84lt(), float84ne(), float8eq(), float8ge(), float8gt(), float8le(), float8lt(), float8ne(), g_cube_consistent(), g_int_consistent(), g_intbig_consistent(), gbt_bit_consistent(), gbt_bpchar_consistent(), gbt_bytea_consistent(), gbt_cash_consistent(), gbt_date_consistent(), gbt_enum_consistent(), gbt_float4_consistent(), gbt_float8_consistent(), gbt_inet_consistent(), gbt_int2_consistent(), gbt_int4_consistent(), gbt_int8_consistent(), gbt_intv_consistent(), gbt_macad8_consistent(), gbt_macad_consistent(), gbt_numeric_consistent(), gbt_oid_consistent(), gbt_text_consistent(), gbt_time_consistent(), gbt_timetz_consistent(), gbt_ts_consistent(), gbt_tstz_consistent(), gbt_uuid_consistent(), ghstore_consistent(), gin_btree_consistent(), gin_consistent_hstore(), gin_consistent_jsonb(), gin_consistent_jsonb_path(), gin_trgm_consistent(), gin_tsquery_consistent(), ginarrayconsistent(), ginint4_consistent(), gist_box_consistent(), gist_circle_consistent(), gist_point_consistent(), gist_poly_consistent(), gtrgm_consistent(), gtsquery_consistent(), gtsvector_consistent(), has_any_column_privilege_id(), has_any_column_privilege_id_id(), has_any_column_privilege_id_name(), has_any_column_privilege_name(), has_any_column_privilege_name_id(), has_any_column_privilege_name_name(), has_column_privilege_id_attnum(), has_column_privilege_id_id_attnum(), has_column_privilege_id_id_name(), has_column_privilege_id_name(), has_column_privilege_id_name_attnum(), has_column_privilege_id_name_name(), has_column_privilege_name_attnum(), has_column_privilege_name_id_attnum(), has_column_privilege_name_id_name(), has_column_privilege_name_name(), has_column_privilege_name_name_attnum(), has_column_privilege_name_name_name(), has_database_privilege_id(), has_database_privilege_id_id(), has_database_privilege_id_name(), has_database_privilege_name(), has_database_privilege_name_id(), has_database_privilege_name_name(), has_foreign_data_wrapper_privilege_id(), has_foreign_data_wrapper_privilege_id_id(), has_foreign_data_wrapper_privilege_id_name(), has_foreign_data_wrapper_privilege_name(), has_foreign_data_wrapper_privilege_name_id(), has_foreign_data_wrapper_privilege_name_name(), has_function_privilege_id(), has_function_privilege_id_id(), has_function_privilege_id_name(), has_function_privilege_name(), has_function_privilege_name_id(), has_function_privilege_name_name(), has_language_privilege_id(), has_language_privilege_id_id(), has_language_privilege_id_name(), has_language_privilege_name(), has_language_privilege_name_id(), has_language_privilege_name_name(), has_schema_privilege_id(), has_schema_privilege_id_id(), has_schema_privilege_id_name(), has_schema_privilege_name(), has_schema_privilege_name_id(), has_schema_privilege_name_name(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_id_name(), has_sequence_privilege_name(), has_sequence_privilege_name_id(), has_sequence_privilege_name_name(), has_server_privilege_id(), has_server_privilege_id_id(), has_server_privilege_id_name(), has_server_privilege_name(), has_server_privilege_name_id(), has_server_privilege_name_name(), has_table_privilege_id(), has_table_privilege_id_id(), has_table_privilege_id_name(), has_table_privilege_name(), has_table_privilege_name_id(), has_table_privilege_name_name(), has_tablespace_privilege_id(), has_tablespace_privilege_id_id(), has_tablespace_privilege_id_name(), has_tablespace_privilege_name(), has_tablespace_privilege_name_id(), has_tablespace_privilege_name_name(), has_type_privilege_id(), has_type_privilege_id_id(), has_type_privilege_id_name(), has_type_privilege_name(), has_type_privilege_name_id(), has_type_privilege_name_name(), hstore_contains(), hstore_defined(), hstore_eq(), hstore_exists(), hstore_exists_all(), hstore_exists_any(), hstore_ge(), hstore_gt(), hstore_le(), hstore_lt(), hstore_ne(), indexam_property(), inet_gist_consistent(), inet_same_family(), inet_spg_leaf_consistent(), int24eq(), int24ge(), int24gt(), int24le(), int24lt(), int24ne(), int28eq(), int28ge(), int28gt(), int28le(), int28lt(), int28ne(), int2eq(), int2ge(), int2gt(), int2le(), int2lt(), int2ne(), int42eq(), int42ge(), int42gt(), int42le(), int42lt(), int42ne(), int48eq(), int48ge(), int48gt(), int48le(), int48lt(), int48ne(), int4_bool(), int4eq(), int4ge(), int4gt(), int4le(), int4lt(), int4ne(), int82eq(), int82ge(), int82gt(), int82le(), int82lt(), int82ne(), int84eq(), int84ge(), int84gt(), int84le(), int84lt(), int84ne(), int8eq(), int8ge(), int8gt(), int8le(), int8lt(), int8ne(), inter_lb(), inter_sb(), inter_sl(), interval_eq(), interval_finite(), interval_ge(), interval_gt(), interval_le(), interval_lt(), interval_ne(), intinterval(), is_valid(), jsonb_contained(), jsonb_contains(), jsonb_eq(), jsonb_exists(), jsonb_exists_all(), jsonb_exists_any(), jsonb_ge(), jsonb_gt(), jsonb_le(), jsonb_lt(), jsonb_ne(), line_eq(), line_horizontal(), line_intersect(), line_parallel(), line_perp(), line_vertical(), lseg_eq(), lseg_ge(), lseg_gt(), lseg_horizontal(), lseg_intersect(), lseg_le(), lseg_lt(), lseg_ne(), lseg_parallel(), lseg_perp(), lseg_vertical(), lt_q_regex(), ltq_regex(), ltree_consistent(), ltree_eq(), ltree_ge(), ltree_gt(), ltree_isparent(), ltree_le(), ltree_lt(), ltree_ne(), ltree_risparent(), ltxtq_exec(), macaddr8_eq(), macaddr8_ge(), macaddr8_gt(), macaddr8_le(), macaddr8_lt(), macaddr8_ne(), macaddr_eq(), macaddr_ge(), macaddr_gt(), macaddr_le(), macaddr_lt(), macaddr_ne(), nameeq(), namege(), namegt(), nameiclike(), nameicnlike(), nameicregexeq(), nameicregexne(), namele(), namelike(), namelt(), namene(), namenlike(), nameregexeq(), nameregexne(), network_eq(), network_ge(), network_gt(), network_le(), network_lt(), network_ne(), network_overlap(), network_sub(), network_subeq(), network_sup(), network_supeq(), numeric_eq(), numeric_ge(), numeric_gt(), numeric_le(), numeric_lt(), numeric_ne(), oideq(), oidge(), oidgt(), oidle(), oidlt(), oidne(), oidvectoreq(), oidvectorge(), oidvectorgt(), oidvectorle(), oidvectorlt(), oidvectorne(), on_pb(), on_pl(), on_ppath(), on_ps(), on_sb(), on_sl(), overlaps_time(), overlaps_timestamp(), overlaps_timetz(), overpaid(), path_inter(), path_isclosed(), path_isopen(), path_n_eq(), path_n_ge(), path_n_gt(), path_n_le(), path_n_lt(), pg_advisory_unlock_int4(), pg_advisory_unlock_int8(), pg_advisory_unlock_shared_int4(), pg_advisory_unlock_shared_int8(), pg_cancel_backend(), pg_collation_is_visible(), pg_column_is_updatable(), pg_conversion_is_visible(), pg_file_rename(), pg_file_unlink(), pg_function_is_visible(), pg_has_role_id(), pg_has_role_id_id(), pg_has_role_id_name(), pg_has_role_name(), pg_has_role_name_id(), pg_has_role_name_name(), pg_is_in_backup(), pg_is_in_recovery(), pg_is_other_temp_schema(), pg_is_wal_replay_paused(), pg_lsn_eq(), pg_lsn_ge(), pg_lsn_gt(), pg_lsn_le(), pg_lsn_lt(), pg_lsn_ne(), pg_opclass_is_visible(), pg_operator_is_visible(), pg_opfamily_is_visible(), pg_reload_conf(), pg_replication_origin_session_is_setup(), pg_rotate_logfile(), pg_table_is_visible(), pg_terminate_backend(), pg_try_advisory_lock_int4(), pg_try_advisory_lock_int8(), pg_try_advisory_lock_shared_int4(), pg_try_advisory_lock_shared_int8(), pg_try_advisory_xact_lock_int4(), pg_try_advisory_xact_lock_int8(), pg_try_advisory_xact_lock_shared_int4(), pg_try_advisory_xact_lock_shared_int8(), pg_ts_config_is_visible(), pg_ts_dict_is_visible(), pg_ts_parser_is_visible(), pg_ts_template_is_visible(), pg_type_is_visible(), point_above(), point_below(), point_eq(), point_horiz(), point_left(), point_ne(), point_right(), point_vert(), poly_above(), poly_below(), poly_contain(), poly_contain_pt(), poly_left(), poly_overabove(), poly_overbelow(), poly_overlap(), poly_overleft(), poly_overright(), poly_right(), poly_same(), postgresql_fdw_validator(), pt_contained_circle(), pt_contained_poly(), pt_in_widget(), range_adjacent(), range_after(), range_before(), range_contained_by(), range_contains(), range_contains_elem(), range_empty(), range_eq(), range_ge(), range_gist_consistent(), range_gt(), range_le(), range_lower_inc(), range_lower_inf(), range_lt(), range_ne(), range_overlaps(), range_overleft(), range_overright(), range_typanalyze(), range_upper_inc(), range_upper_inf(), record_eq(), record_ge(), record_gt(), record_image_eq(), record_image_ge(), record_image_gt(), record_image_le(), record_image_lt(), record_image_ne(), record_le(), record_lt(), record_ne(), reltimeeq(), reltimege(), reltimegt(), reltimele(), reltimelt(), reltimene(), row_security_active(), row_security_active_name(), sepgsql_restorecon(), sepgsql_setcon(), similarity_op(), smgreq(), smgrne(), spg_box_quad_leaf_consistent(), spg_quad_leaf_consistent(), spg_range_quad_leaf_consistent(), spg_text_leaf_consistent(), ssl_client_cert_present(), ssl_is_used(), test_atomic_ops(), text_ge(), text_gt(), text_le(), text_lt(), text_pattern_ge(), text_pattern_gt(), text_pattern_le(), text_pattern_lt(), texteq(), texticlike(), texticnlike(), texticregexeq(), texticregexne(), textlike(), textne(), textnlike(), textregexeq(), textregexne(), tideq(), tidge(), tidgt(), tidle(), tidlt(), tidne(), time_eq(), time_ge(), time_gt(), time_le(), time_lt(), time_ne(), timestamp_eq(), timestamp_eq_date(), timestamp_eq_timestamptz(), timestamp_finite(), timestamp_ge(), timestamp_ge_date(), timestamp_ge_timestamptz(), timestamp_gt(), timestamp_gt_date(), timestamp_gt_timestamptz(), timestamp_le(), timestamp_le_date(), timestamp_le_timestamptz(), timestamp_lt(), timestamp_lt_date(), timestamp_lt_timestamptz(), timestamp_ne(), timestamp_ne_date(), timestamp_ne_timestamptz(), timestamptz_eq_date(), timestamptz_eq_timestamp(), timestamptz_ge_date(), timestamptz_ge_timestamp(), timestamptz_gt_date(), timestamptz_gt_timestamp(), timestamptz_le_date(), timestamptz_le_timestamp(), timestamptz_lt_date(), timestamptz_lt_timestamp(), timestamptz_ne_date(), timestamptz_ne_timestamp(), timetz_eq(), timetz_ge(), timetz_gt(), timetz_le(), timetz_lt(), timetz_ne(), tintervalct(), tintervaleq(), tintervalge(), tintervalgt(), tintervalle(), tintervalleneq(), tintervallenge(), tintervallengt(), tintervallenle(), tintervallenlt(), tintervallenne(), tintervallt(), tintervalne(), tintervalov(), tintervalsame(), ts_match_tq(), ts_match_tt(), ts_match_vq(), ts_typanalyze(), tsq_mcontains(), txid_visible_in_snapshot(), uuid_eq(), uuid_ge(), uuid_gt(), uuid_le(), uuid_lt(), uuid_ne(), weak_input_status(), word_similarity_commutator_op(), word_similarity_op(), xideq(), xidneq(), xml_is_well_formed(), xml_is_well_formed_content(), xml_is_well_formed_document(), xmlexists(), xpath_bool(), and xpath_exists().

#define PG_RETURN_BPCHAR_P (   x)    PG_RETURN_POINTER(x)
#define PG_RETURN_CHAR (   x)    return CharGetDatum(x)

Definition at line 310 of file fmgr.h.

Referenced by charin(), charrecv(), i4tochar(), and text_char().

#define PG_RETURN_DATUM (   x)    return (x)

Definition at line 305 of file fmgr.h.

Referenced by _int_contained_joinsel(), _int_contained_sel(), _int_contains_joinsel(), _int_contains_sel(), _int_overlap_joinsel(), _int_overlap_sel(), _intbig_in(), _intbig_out(), _lt_q_rregex(), _ltq_rregex(), _ltree_r_isparent(), _ltree_r_risparent(), _ltxtq_rexec(), array_agg_array_finalfn(), array_agg_finalfn(), array_append(), array_larger(), array_positions(), array_prepend(), array_smaller(), bitshiftleft(), bitshiftright(), brin_inclusion_consistent(), brin_metapage_info(), brin_minmax_consistent(), bt_metap(), bt_page_stats(), citext_hash(), close_pb(), close_sb(), current_schema(), current_user(), dblink_current_query(), dist_sb(), domain_in(), domain_recv(), g_cube_compress(), g_intbig_decompress(), ghstore_in(), ghstore_out(), gtrgm_in(), gtrgm_out(), gtsquery_decompress(), gtsvectorin(), hash_bitmap_info(), hash_metapage_info(), hash_numeric(), hash_page_stats(), hstore_contained(), hstore_hash(), hstore_populate_record(), inet_client_port(), inet_server_port(), int2int4_sum(), int8_avg(), int8_sum(), interpt_pp(), json_object(), json_object_two_arg(), leadlag_common(), lt_q_rregex(), ltq_rregex(), ltree_gist_in(), ltree_gist_out(), ltxtq_rexec(), mode_final(), numeric_avg(), numeric_float4(), numeric_float8(), numeric_poly_avg(), page_header(), parse_ident(), percentile_cont_final_common(), percentile_disc_final(), pg_backup_start_time(), pg_control_checkpoint(), pg_control_init(), pg_control_recovery(), pg_control_system(), pg_convert_from(), pg_convert_to(), pg_create_logical_replication_slot(), pg_create_physical_replication_slot(), pg_get_object_address(), pg_identify_object(), pg_identify_object_as_address(), pg_last_committed_xact(), pg_stat_file(), pg_stat_get_archiver(), pg_stat_get_backend_client_port(), pg_stat_get_wal_receiver(), pg_visibility(), pg_visibility_map(), pg_visibility_map_summary(), pg_walfile_name_offset(), pgstatginindex(), pgstatginindex_v1_5(), pgstathashindex(), pgstatindex(), pgstatindex_v1_5(), pgstatindexbyid(), pgstatindexbyid_v1_5(), pgstattuple(), pgstattuple_approx(), pgstattuple_approx_v1_5(), pgstattuple_v1_5(), pgstattuplebyid(), pgstattuplebyid_v1_5(), phraseto_tsquery(), plainto_tsquery(), poly_center(), poly_contained(), populate_record_worker(), quote_nullable(), range_lower(), range_upper(), regexp_match(), session_user(), to_tsquery(), to_tsvector(), ts_headline(), ts_headline_byid(), ts_headline_opt(), ts_match_qv(), tsq_mcontained(), window_first_value(), window_last_value(), and window_nth_value().

#define PG_RETURN_FLOAT8 (   x)    return Float8GetDatum(x)

Definition at line 318 of file fmgr.h.

Referenced by _int_matchsel(), add_one_float8(), areajoinsel(), areasel(), arraycontjoinsel(), arraycontsel(), box_area(), box_distance(), box_height(), box_width(), boxarea(), cash_div_cash(), circle_area(), circle_diameter(), circle_distance(), circle_radius(), contjoinsel(), contsel(), cube_coord(), cube_coord_llur(), cube_distance(), cube_ll_coord(), cube_size(), cube_ur_coord(), dacos(), dacosd(), dasin(), dasind(), datan(), datan2(), datan2d(), datand(), daterange_subdiff(), dcbrt(), dceil(), dcos(), dcosd(), dcot(), dcotd(), degrees(), dexp(), dfloor(), dist_cpoint(), dist_cpoly(), dist_pb(), dist_pc(), dist_pl(), dist_polyp(), dist_ppath(), dist_ppoly(), dist_ps(), dist_sl(), distance_chebyshev(), distance_taxicab(), dlog1(), dlog10(), dpi(), dpow(), drandom(), dround(), dsign(), dsin(), dsind(), dsqrt(), dtan(), dtand(), dtrunc(), eqjoinsel(), eqsel(), float48div(), float48mi(), float48mul(), float48pl(), float84div(), float84mi(), float84mul(), float84pl(), float8_avg(), float8_corr(), float8_covar_pop(), float8_covar_samp(), float8_dist(), float8_regr_avgx(), float8_regr_avgy(), float8_regr_intercept(), float8_regr_r2(), float8_regr_slope(), float8_regr_sxx(), float8_regr_sxy(), float8_regr_syy(), float8_stddev_pop(), float8_stddev_samp(), float8_var_pop(), float8_var_samp(), float8abs(), float8div(), float8in(), float8larger(), float8mi(), float8mul(), float8pl(), float8recv(), float8smaller(), float8um(), float8up(), ftod(), g_cube_distance(), g_cube_penalty(), gbt_cash_distance(), gbt_date_distance(), gbt_float4_distance(), gbt_float8_distance(), gbt_int2_distance(), gbt_int4_distance(), gbt_int8_distance(), gbt_intv_distance(), gbt_oid_distance(), gbt_time_distance(), gbt_ts_distance(), gbt_tstz_distance(), gist_circle_distance(), gist_point_distance(), gist_poly_distance(), gtrgm_distance(), hypothetical_cume_dist_final(), hypothetical_percent_rank_final(), i2tod(), i4tod(), i8tod(), iclikejoinsel(), iclikesel(), icnlikejoinsel(), icnlikesel(), icregexeqjoinsel(), icregexeqsel(), icregexnejoinsel(), icregexnesel(), int4range_subdiff(), int8range_subdiff(), interval_part(), likejoinsel(), likesel(), line_distance(), lseg_distance(), lseg_length(), ltreeparentsel(), neqjoinsel(), neqsel(), networkjoinsel(), networksel(), nlikejoinsel(), nlikesel(), numeric_float8(), numeric_float8_no_overflow(), numrange_subdiff(), path_area(), path_distance(), path_length(), pg_notification_queue_usage(), pg_stat_get_checkpoint_sync_time(), pg_stat_get_checkpoint_write_time(), pg_stat_get_db_blk_read_time(), pg_stat_get_db_blk_write_time(), pg_stat_get_function_self_time(), pg_stat_get_function_total_time(), pg_stat_get_xact_function_self_time(), pg_stat_get_xact_function_total_time(), point_distance(), point_slope(), positionjoinsel(), positionsel(), radians(), rangesel(), regexeqjoinsel(), regexeqsel(), regexnejoinsel(), regexnesel(), regress_dist_ptpath(), regress_path_dist(), scalargtjoinsel(), scalargtsel(), scalarltjoinsel(), scalarltsel(), time_part(), timestamp_part(), timestamptz_part(), timetz_part(), tsmatchjoinsel(), tsmatchsel(), tsrange_subdiff(), tstzrange_subdiff(), window_cume_dist(), and window_percent_rank().

#define PG_RETURN_HEAPTUPLEHEADER (   x)    return HeapTupleHeaderGetDatum(x)

Definition at line 325 of file fmgr.h.

Referenced by record_in(), and record_recv().

#define PG_RETURN_INT32 (   x)    return Int32GetDatum(x)

Definition at line 306 of file fmgr.h.

Referenced by add_one(), array_cardinality(), array_length(), array_lower(), array_ndims(), array_position_common(), array_upper(), ascii(), be_lo_close(), be_lo_export(), be_lo_lseek(), be_lo_open(), be_lo_tell(), be_lo_truncate(), be_lo_truncate64(), be_lo_unlink(), be_lowrite(), bitcmp(), bitgetbit(), bitlength(), bitoctetlength(), bitposition(), bittoint4(), bittypmodin(), bool_int4(), bpcharcmp(), bpcharlen(), bpcharoctetlen(), bpchartypmodin(), brin_summarize_new_values(), btabstimecmp(), btarraycmp(), btboolcmp(), btbpchar_pattern_cmp(), btcharcmp(), btfloat48cmp(), btfloat4cmp(), btfloat84cmp(), btfloat8cmp(), btint24cmp(), btint28cmp(), btint2cmp(), btint42cmp(), btint48cmp(), btint4cmp(), btint82cmp(), btint84cmp(), btint8cmp(), btnamecmp(), btoidcmp(), btoidvectorcmp(), btrecordcmp(), btrecordimagecmp(), btreltimecmp(), bttext_pattern_cmp(), bttextcmp(), bttidcmp(), bttintervalcmp(), byteacmp(), byteaGetBit(), byteaGetByte(), byteaoctetlen(), byteapos(), cash_cmp(), chartoi4(), citext_cmp(), complex_abs_cmp(), cube_cmp(), cube_dim(), date_cmp(), date_cmp_timestamp(), date_cmp_timestamptz(), date_dist(), date_mi(), dblink_is_busy(), dblink_send_query(), difference(), dtoi4(), enum_cmp(), ftoi4(), get_timetravel(), gin_btree_compare_prefix(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_compare_jsonb(), gin_enum_cmp(), gin_numeric_cmp(), hash_range(), hstore_cmp(), hstore_version_diag(), i2toi4(), icount(), idx(), int24div(), int24mi(), int24mul(), int24pl(), int42div(), int42mi(), int42mul(), int42pl(), int4_dist(), int4abs(), int4and(), int4div(), int4in(), int4inc(), int4larger(), int4mi(), int4mod(), int4mul(), int4not(), int4or(), int4pl(), int4recv(), int4shl(), int4shr(), int4smaller(), int4um(), int4up(), int4xor(), int84(), interval_cmp(), intervaltypmodin(), json_array_length(), jsonb_array_length(), jsonb_cmp(), jsonb_hash(), length_in_encoding(), levenshtein(), levenshtein_less_equal(), levenshtein_less_equal_with_costs(), levenshtein_with_costs(), ltree_cmp(), ltree_index(), macaddr8_cmp(), macaddr_cmp(), mxid_age(), network_cmp(), network_family(), network_masklen(), nlevel(), numeric_cmp(), numeric_int4(), numeric_scale(), numerictypmodin(), path_npoints(), pg_backend_pid(), PG_char_to_encoding(), pg_column_size(), pg_encoding_max_length_sql(), pg_event_trigger_table_rewrite_reason(), pg_lsn_cmp(), pg_num_nonnulls(), pg_num_nulls(), pg_relation_is_updatable(), pg_stat_get_backend_client_port(), pg_stat_get_backend_pid(), pg_stat_get_db_numbackends(), pg_trigger_depth(), poly_npoints(), prsd_nexttoken(), range_cmp(), set_timetravel(), set_ttdummy(), testprs_getlexeme(), text_length(), textlen(), textoctetlen(), textpos(), time_cmp(), timestamp_cmp(), timestamp_cmp_date(), timestamp_cmp_timestamptz(), timestamptypmodin(), timestamptz_cmp_date(), timestamptz_cmp_timestamp(), timestamptztypmodin(), timetypmodin(), timetz_cmp(), timetztypmodin(), tsquery_cmp(), tsquery_numnode(), tsvector_length(), uuid_cmp(), varbittypmodin(), varchartypmodin(), width_bucket_array(), width_bucket_float8(), width_bucket_numeric(), window_ntile(), worker_spi_launch(), and xid_age().

#define PG_RETURN_INT64 (   x)    return Int64GetDatum(x)

Definition at line 319 of file fmgr.h.

Referenced by be_lo_lseek64(), be_lo_tell64(), bittoint8(), currval_oid(), dtoi8(), ftoi8(), gin_clean_pending_list(), hypothetical_dense_rank_final(), hypothetical_rank_final(), inetmi(), int28(), int28div(), int28mi(), int28mul(), int28pl(), int2_sum(), int48(), int48div(), int48mi(), int48mul(), int48pl(), int4_sum(), int82div(), int82mi(), int82mul(), int82pl(), int84div(), int84mi(), int84mul(), int84pl(), int8_dist(), int8abs(), int8and(), int8dec(), int8div(), int8in(), int8inc(), int8larger(), int8mi(), int8mod(), int8mul(), int8not(), int8or(), int8pl(), int8recv(), int8shl(), int8shr(), int8smaller(), int8um(), int8up(), int8xor(), lastval(), nextval(), nextval_oid(), numeric_int8(), oidtoi8(), pg_database_size_name(), pg_database_size_oid(), pg_file_write(), pg_indexes_size(), pg_prewarm(), pg_relation_size(), pg_relpages(), pg_relpages_v1_5(), pg_relpagesbyid(), pg_relpagesbyid_v1_5(), pg_sequence_last_value(), pg_size_bytes(), pg_stat_get_analyze_count(), pg_stat_get_autoanalyze_count(), pg_stat_get_autovacuum_count(), pg_stat_get_bgwriter_buf_written_checkpoints(), pg_stat_get_bgwriter_buf_written_clean(), pg_stat_get_bgwriter_maxwritten_clean(), pg_stat_get_bgwriter_requested_checkpoints(), pg_stat_get_bgwriter_timed_checkpoints(), pg_stat_get_blocks_fetched(), pg_stat_get_blocks_hit(), pg_stat_get_buf_alloc(), pg_stat_get_buf_fsync_backend(), pg_stat_get_buf_written_backend(), pg_stat_get_db_blocks_fetched(), pg_stat_get_db_blocks_hit(), pg_stat_get_db_conflict_all(), pg_stat_get_db_conflict_bufferpin(), pg_stat_get_db_conflict_lock(), pg_stat_get_db_conflict_snapshot(), pg_stat_get_db_conflict_startup_deadlock(), pg_stat_get_db_conflict_tablespace(), pg_stat_get_db_deadlocks(), pg_stat_get_db_temp_bytes(), pg_stat_get_db_temp_files(), pg_stat_get_db_tuples_deleted(), pg_stat_get_db_tuples_fetched(), pg_stat_get_db_tuples_inserted(), pg_stat_get_db_tuples_returned(), pg_stat_get_db_tuples_updated(), pg_stat_get_db_xact_commit(), pg_stat_get_db_xact_rollback(), pg_stat_get_dead_tuples(), pg_stat_get_function_calls(), pg_stat_get_live_tuples(), pg_stat_get_mod_since_analyze(), pg_stat_get_numscans(), pg_stat_get_tuples_deleted(), pg_stat_get_tuples_fetched(), pg_stat_get_tuples_hot_updated(), pg_stat_get_tuples_inserted(), pg_stat_get_tuples_returned(), pg_stat_get_tuples_updated(), pg_stat_get_vacuum_count(), pg_stat_get_xact_blocks_fetched(), pg_stat_get_xact_blocks_hit(), pg_stat_get_xact_function_calls(), pg_stat_get_xact_numscans(), pg_stat_get_xact_tuples_deleted(), pg_stat_get_xact_tuples_fetched(), pg_stat_get_xact_tuples_hot_updated(), pg_stat_get_xact_tuples_inserted(), pg_stat_get_xact_tuples_returned(), pg_stat_get_xact_tuples_updated(), pg_table_size(), pg_tablespace_size_name(), pg_tablespace_size_oid(), pg_total_relation_size(), setval3_oid(), setval_oid(), txid_current(), txid_current_if_assigned(), txid_snapshot_xmax(), txid_snapshot_xmin(), window_dense_rank(), window_rank(), and window_row_number().

#define PG_RETURN_NAME (   x)    return NameGetDatum(x)

Definition at line 315 of file fmgr.h.

Referenced by bpchar_name(), current_database(), namein(), namerecv(), pg_get_userbyid(), and text_name().

#define PG_RETURN_NULL ( )    do { fcinfo->isnull = true; return (Datum) 0; } while (0)

Definition at line 297 of file fmgr.h.

Referenced by _lca(), _ltq_extract_regex(), _ltree_extract_isparent(), _ltree_extract_risparent(), _ltxtq_extract_exec(), aclinsert(), aclremove(), array_agg_array_finalfn(), array_agg_finalfn(), array_cat(), array_dims(), array_length(), array_lower(), array_ndims(), array_position_common(), array_positions(), array_remove(), array_replace(), array_to_text_null(), array_upper(), bool_alltrue(), bool_anytrue(), box_intersect(), bytea_string_agg_finalfn(), close_lb(), close_ps(), close_sl(), crosstab(), current_query(), current_schema(), dblink_get_connections(), dist_lb(), dist_ppath(), dmetaphone(), dmetaphone_alt(), domain_in(), domain_recv(), each_worker(), each_worker_jsonb(), elements_worker(), elements_worker_jsonb(), float8_avg(), float8_corr(), float8_covar_pop(), float8_covar_samp(), float8_regr_avgx(), float8_regr_avgy(), float8_regr_intercept(), float8_regr_r2(), float8_regr_slope(), float8_regr_sxx(), float8_regr_sxy(), float8_regr_syy(), float8_stddev_pop(), float8_stddev_samp(), float8_var_pop(), float8_var_samp(), format_type(), get_command_tag(), get_jsonb_path_all(), get_path_all(), gin_extract_trgm(), has_any_column_privilege_id(), has_any_column_privilege_id_id(), has_any_column_privilege_name_id(), has_column_privilege_id_attnum(), has_column_privilege_id_id_attnum(), has_column_privilege_id_id_name(), has_column_privilege_id_name(), has_column_privilege_id_name_attnum(), has_column_privilege_id_name_name(), has_column_privilege_name_attnum(), has_column_privilege_name_id_attnum(), has_column_privilege_name_id_name(), has_column_privilege_name_name(), has_column_privilege_name_name_attnum(), has_column_privilege_name_name_name(), has_database_privilege_id(), has_database_privilege_id_id(), has_database_privilege_name_id(), has_function_privilege_id(), has_function_privilege_id_id(), has_function_privilege_name_id(), has_language_privilege_id(), has_language_privilege_id_id(), has_language_privilege_name_id(), has_schema_privilege_id(), has_schema_privilege_id_id(), has_schema_privilege_name_id(), has_sequence_privilege_id(), has_sequence_privilege_id_id(), has_sequence_privilege_name_id(), has_table_privilege_id(), has_table_privilege_id_id(), has_table_privilege_name_id(), has_type_privilege_id(), has_type_privilege_id_id(), has_type_privilege_name_id(), hstore_fetchval(), hstore_from_arrays(), hstore_from_text(), hstore_populate_record(), hstore_svals(), indexam_property(), inet_client_addr(), inet_client_port(), inet_server_addr(), inet_server_port(), int24div(), int28div(), int2_sum(), int2div(), int2int4_sum(), int2mod(), int42div(), int48div(), int4_sum(), int4div(), int4mod(), int82div(), int84div(), int8_avg(), int8_sum(), int8div(), int8mod(), interpt_pp(), interval_avg(), interval_to_char(), json_agg_finalfn(), json_array_element(), json_array_element_text(), json_object_agg_finalfn(), json_object_field(), json_object_field_text(), jsonb_agg_finalfn(), jsonb_array_element(), jsonb_array_element_text(), jsonb_object_agg_finalfn(), jsonb_object_field(), jsonb_object_field_text(), lca(), leadlag_common(), line_interpt(), lseg_interpt(), metaphone(), mode_final(), numeric_accum_inv(), numeric_avg(), numeric_poly_avg(), numeric_poly_stddev_pop(), numeric_poly_stddev_samp(), numeric_poly_sum(), numeric_poly_var_pop(), numeric_poly_var_samp(), numeric_scale(), numeric_stddev_pop(), numeric_stddev_samp(), numeric_sum(), numeric_to_number(), numeric_var_pop(), numeric_var_samp(), overlaps_time(), overlaps_timestamp(), overlaps_timetz(), overpaid(), path_add(), path_area(), path_center(), path_distance(), percentile_cont_final_common(), percentile_cont_multi_final_common(), percentile_disc_final(), percentile_disc_multi_final(), pg_backup_start_time(), pg_collation_actual_version(), pg_collation_for(), pg_collation_is_visible(), pg_conversion_is_visible(), pg_current_logfile(), pg_database_size_name(), pg_database_size_oid(), pg_describe_object(), pg_encoding_max_length_sql(), pg_file_rename(), pg_filenode_relation(), pg_function_is_visible(), pg_get_constraintdef(), pg_get_constraintdef_ext(), pg_get_expr(), pg_get_expr_ext(), pg_get_function_arg_default(), pg_get_function_arguments(), pg_get_function_identity_arguments(), pg_get_function_result(), pg_get_functiondef(), pg_get_indexdef(), pg_get_indexdef_ext(), pg_get_replica_identity_index(), pg_get_ruledef(), pg_get_ruledef_ext(), pg_get_serial_sequence(), pg_get_statisticsextdef(), pg_get_triggerdef(), pg_get_triggerdef_ext(), pg_get_viewdef(), pg_get_viewdef_ext(), pg_get_viewdef_name(), pg_get_viewdef_name_ext(), pg_get_viewdef_wrap(), pg_hba_file_rules(), pg_index_column_has_property(), pg_indexes_size(), pg_last_wal_receive_location(), pg_last_wal_replay_location(), pg_last_xact_replay_timestamp(), pg_num_nonnulls(), pg_num_nulls(), pg_opclass_is_visible(), pg_operator_is_visible(), pg_opfamily_is_visible(), pg_read_binary_file(), pg_read_file(), pg_relation_filenode(), pg_relation_filepath(), pg_relation_size(), pg_replication_origin_oid(), pg_replication_origin_progress(), pg_replication_origin_session_progress(), pg_sequence_last_value(), pg_stat_file(), pg_stat_get_backend_activity_start(), pg_stat_get_backend_client_addr(), pg_stat_get_backend_client_port(), pg_stat_get_backend_dbid(), pg_stat_get_backend_pid(), pg_stat_get_backend_start(), pg_stat_get_backend_userid(), pg_stat_get_backend_wait_event(), pg_stat_get_backend_wait_event_type(), pg_stat_get_backend_xact_start(), pg_stat_get_db_stat_reset_time(), pg_stat_get_function_calls(), pg_stat_get_function_self_time(), pg_stat_get_function_total_time(), pg_stat_get_last_analyze_time(), pg_stat_get_last_autoanalyze_time(), pg_stat_get_last_autovacuum_time(), pg_stat_get_last_vacuum_time(), pg_stat_get_wal_receiver(), pg_stat_get_xact_function_calls(), pg_stat_get_xact_function_self_time(), pg_stat_get_xact_function_total_time(), pg_table_is_visible(), pg_table_size(), pg_tablespace_location(), pg_tablespace_size_name(), pg_tablespace_size_oid(), pg_total_relation_size(), pg_ts_config_is_visible(), pg_ts_dict_is_visible(), pg_ts_parser_is_visible(), pg_ts_template_is_visible(), pg_type_is_visible(), pg_xact_commit_timestamp(), poly_box(), poly_distance(), populate_record_worker(), populate_recordset_worker(), querytree(), range_lower(), range_minus(), range_upper(), regexp_match(), regress_dist_ptpath(), regress_path_dist(), sepgsql_getcon(), show_config_by_name_missing_ok(), similar_escape(), ssl_cipher(), ssl_client_dn(), ssl_client_dn_field(), ssl_client_serial(), ssl_issuer_dn(), ssl_issuer_field(), ssl_version(), string_agg_finalfn(), text_concat(), text_concat_ws(), text_format(), text_to_array_internal(), textregexsubstr(), timestamp_part(), timestamp_time(), timestamp_to_char(), timestamptz_part(), timestamptz_time(), timestamptz_timetz(), timestamptz_to_char(), to_regclass(), to_regnamespace(), to_regoper(), to_regoperator(), to_regproc(), to_regprocedure(), to_regrole(), to_regtype(), ts_lexize(), tuple_data_split(), txid_current_if_assigned(), txid_status(), window_first_value(), window_last_value(), window_nth_value(), window_ntile(), worker_spi_launch(), xmlconcat2(), xpath_list(), xpath_nodeset(), xpath_number(), xpath_string(), and xslt_process().

#define PG_RETURN_POINTER (   x)    return PointerGetDatum(x)

Definition at line 313 of file fmgr.h.

Referenced by _int_inter(), _int_union(), _lca(), _ltq_extract_regex(), _ltree_compress(), _ltree_extract_isparent(), _ltree_extract_risparent(), _ltree_penalty(), _ltree_picksplit(), _ltree_same(), _ltree_union(), _ltxtq_extract_exec(), array_agg_array_transfn(), array_agg_transfn(), array_to_tsvector(), blhandler(), bool_accum(), bool_accum_inv(), bqarr_in(), bqarr_out(), brin_inclusion_opcinfo(), brin_minmax_opcinfo(), brinhandler(), bthandler(), bytea_string_agg_transfn(), chkpass_in(), complex_add(), complex_in(), complex_recv(), current_schemas(), dintdict_init(), dintdict_lexize(), dispell_init(), dispell_lexize(), dsimple_init(), dsimple_lexize(), dsnowball_init(), dsnowball_lexize(), dsynonym_init(), dsynonym_lexize(), dxsyn_init(), dxsyn_lexize(), file_fdw_handler(), g_cube_decompress(), g_cube_picksplit(), g_cube_union(), g_int_compress(), g_int_decompress(), g_int_penalty(), g_int_picksplit(), g_int_same(), g_int_union(), g_intbig_compress(), g_intbig_penalty(), g_intbig_picksplit(), g_intbig_same(), g_intbig_union(), gbt_bit_compress(), gbt_bit_penalty(), gbt_bit_picksplit(), gbt_bit_same(), gbt_bit_union(), gbt_bpchar_compress(), gbt_bytea_compress(), gbt_bytea_penalty(), gbt_bytea_picksplit(), gbt_bytea_same(), gbt_bytea_union(), gbt_cash_compress(), gbt_cash_fetch(), gbt_cash_penalty(), gbt_cash_picksplit(), gbt_cash_same(), gbt_cash_union(), gbt_date_compress(), gbt_date_fetch(), gbt_date_penalty(), gbt_date_picksplit(), gbt_date_same(), gbt_date_union(), gbt_decompress(), gbt_enum_compress(), gbt_enum_fetch(), gbt_enum_penalty(), gbt_enum_picksplit(), gbt_enum_same(), gbt_enum_union(), gbt_float4_compress(), gbt_float4_fetch(), gbt_float4_penalty(), gbt_float4_picksplit(), gbt_float4_same(), gbt_float4_union(), gbt_float8_compress(), gbt_float8_fetch(), gbt_float8_penalty(), gbt_float8_picksplit(), gbt_float8_same(), gbt_float8_union(), gbt_inet_compress(), gbt_inet_penalty(), gbt_inet_picksplit(), gbt_inet_same(), gbt_inet_union(), gbt_int2_compress(), gbt_int2_fetch(), gbt_int2_penalty(), gbt_int2_picksplit(), gbt_int2_same(), gbt_int2_union(), gbt_int4_compress(), gbt_int4_fetch(), gbt_int4_penalty(), gbt_int4_picksplit(), gbt_int4_same(), gbt_int4_union(), gbt_int8_compress(), gbt_int8_fetch(), gbt_int8_penalty(), gbt_int8_picksplit(), gbt_int8_same(), gbt_int8_union(), gbt_intv_compress(), gbt_intv_decompress(), gbt_intv_fetch(), gbt_intv_penalty(), gbt_intv_picksplit(), gbt_intv_same(), gbt_intv_union(), gbt_macad8_compress(), gbt_macad8_fetch(), gbt_macad8_penalty(), gbt_macad8_picksplit(), gbt_macad8_same(), gbt_macad8_union(), gbt_macad_compress(), gbt_macad_fetch(), gbt_macad_penalty(), gbt_macad_picksplit(), gbt_macad_same(), gbt_macad_union(), gbt_numeric_compress(), gbt_numeric_penalty(), gbt_numeric_picksplit(), gbt_numeric_same(), gbt_numeric_union(), gbt_oid_compress(), gbt_oid_fetch(), gbt_oid_penalty(), gbt_oid_picksplit(), gbt_oid_same(), gbt_oid_union(), gbt_text_compress(), gbt_text_penalty(), gbt_text_picksplit(), gbt_text_same(), gbt_text_union(), gbt_time_compress(), gbt_time_fetch(), gbt_time_penalty(), gbt_time_picksplit(), gbt_time_same(), gbt_time_union(), gbt_timetz_compress(), gbt_ts_compress(), gbt_ts_fetch(), gbt_ts_penalty(), gbt_ts_picksplit(), gbt_ts_same(), gbt_ts_union(), gbt_tstz_compress(), gbt_uuid_compress(), gbt_uuid_fetch(), gbt_uuid_penalty(), gbt_uuid_picksplit(), gbt_uuid_same(), gbt_uuid_union(), gbt_var_decompress(), gbt_var_fetch(), gbtreekey_in(), gbtreekey_out(), ghstore_compress(), ghstore_decompress(), ghstore_penalty(), ghstore_picksplit(), ghstore_same(), ghstore_union(), gin_btree_extract_query(), gin_btree_extract_value(), gin_extract_hstore(), gin_extract_hstore_query(), gin_extract_jsonb(), gin_extract_jsonb_path(), gin_extract_jsonb_query(), gin_extract_jsonb_query_path(), gin_extract_query_trgm(), gin_extract_tsquery(), gin_extract_tsvector(), gin_extract_value_trgm(), ginarrayextract(), ginhandler(), ginint4_queryextract(), ginqueryarrayextract(), gist_box_compress(), gist_box_decompress(), gist_box_fetch(), gist_box_penalty(), gist_box_picksplit(), gist_box_same(), gist_box_union(), gist_circle_compress(), gist_point_compress(), gist_point_fetch(), gist_poly_compress(), gisthandler(), gtrgm_compress(), gtrgm_decompress(), gtrgm_penalty(), gtrgm_picksplit(), gtrgm_same(), gtrgm_union(), gtsquery_compress(), gtsquery_penalty(), gtsquery_picksplit(), gtsquery_same(), gtsvector_compress(), gtsvector_decompress(), gtsvector_penalty(), gtsvector_picksplit(), gtsvector_same(), gtsvector_union(), gtsvectorout(), hashhandler(), hstore_akeys(), hstore_avals(), hstore_concat(), hstore_delete(), hstore_delete_array(), hstore_delete_hstore(), hstore_from_array(), hstore_from_arrays(), hstore_from_record(), hstore_from_text(), hstore_in(), hstore_populate_record(), hstore_recv(), hstore_slice_to_array(), hstore_slice_to_hstore(), hstore_to_array(), hstore_to_jsonb(), hstore_to_jsonb_loose(), hstore_to_matrix(), inet_gist_compress(), inet_gist_decompress(), inet_gist_fetch(), inet_gist_penalty(), inet_gist_picksplit(), inet_gist_same(), inet_gist_union(), int2_accum(), int2_accum_inv(), int2_sum(), int2vectorin(), int2vectorrecv(), int44in(), int4_accum(), int4_accum_inv(), int4_sum(), int8_accum(), int8_accum_inv(), int8_avg_accum(), int8_avg_accum_inv(), int8_avg_combine(), int8_avg_deserialize(), int8dec(), int8inc(), intarray_del_elem(), intarray_push_array(), intarray_push_elem(), interval_transform(), intset(), intset_subtract(), intset_union_elem(), json_agg_transfn(), json_object_agg_transfn(), jsonb_agg_finalfn(), jsonb_agg_transfn(), jsonb_build_array(), jsonb_build_array_noargs(), jsonb_build_object(), jsonb_build_object_noargs(), jsonb_from_cstring(), jsonb_object(), jsonb_object_agg_finalfn(), jsonb_object_agg_transfn(), jsonb_object_two_arg(), jsonb_strip_nulls(), lca(), lquery_in(), lquery_out(), ltree2text(), ltree_addltree(), ltree_addtext(), ltree_compress(), ltree_decompress(), ltree_in(), ltree_out(), ltree_penalty(), ltree_picksplit(), ltree_same(), ltree_textadd(), ltree_union(), ltxtq_in(), ltxtq_out(), make_tuple_indirect(), numeric_accum(), numeric_accum_inv(), numeric_avg_accum(), numeric_avg_combine(), numeric_avg_deserialize(), numeric_combine(), numeric_deserialize(), numeric_poly_combine(), numeric_poly_deserialize(), numeric_transform(), oidvectorin(), oidvectorrecv(), ordered_set_transition(), ordered_set_transition_multi(), percentile_cont_multi_final_common(), percentile_disc_multi_final(), plainto_tsquery_byid(), plperl_to_hstore(), plpython_to_hstore(), populate_record_worker(), postgres_fdw_handler(), prsd_headline(), prsd_lextype(), prsd_start(), range_gist_compress(), range_gist_decompress(), range_gist_fetch(), range_gist_penalty(), range_gist_picksplit(), range_gist_same(), seg_in(), show_trgm(), sort(), sort_asc(), sort_desc(), spghandler(), string_agg_transfn(), subarray(), subltree(), subpath(), testprs_lextype(), testprs_start(), text2ltree(), thesaurus_init(), thesaurus_lexize(), time_transform(), timestamp_izone_transform(), timestamp_transform(), timestamp_zone_transform(), to_jsonb(), to_tsvector_byid(), ts_headline_byid_opt(), ts_lexize(), tsm_bernoulli_handler(), tsm_system_handler(), tsm_system_rows_handler(), tsm_system_time_handler(), tsquery_and(), tsquery_not(), tsquery_or(), tsquery_phrase(), tsquery_phrase_distance(), tsquery_rewrite(), tsquery_rewrite_query(), tsqueryout(), tsquerytree(), tsvector_concat(), tsvector_delete_arr(), tsvector_delete_str(), tsvector_filter(), tsvector_setweight(), tsvector_setweight_by_filter(), tsvector_strip(), tsvector_to_array(), txid_current_snapshot(), txid_snapshot_in(), txid_snapshot_recv(), unaccent_init(), unaccent_lexize(), uniq(), uuid_recv(), varbit_transform(), and varchar_transform().

#define PG_RETURN_TEXT_P (   x)    PG_RETURN_POINTER(x)

Definition at line 322 of file fmgr.h.

Referenced by array_dims(), array_to_json(), array_to_json_pretty(), array_to_text(), array_to_text_null(), ASN1_STRING_to_text(), binary_encode(), booltext(), brin_page_type(), btrim(), btrim1(), cash_words(), char_text(), chkpass_rout(), chr(), cidr_abbrev(), citext_larger(), citext_smaller(), concat_text(), copytext(), current_query(), dblink_build_sql_delete(), dblink_build_sql_insert(), dblink_build_sql_update(), dblink_cancel_query(), dblink_close(), dblink_connect(), dblink_disconnect(), dblink_error_message(), dblink_exec(), dblink_open(), dmetaphone(), dmetaphone_alt(), float4_to_char(), float8_to_char(), format_type(), fsm_page_contents(), get_command_tag(), get_command_type(), get_jsonb_path_all(), get_path_all(), hash_page_type(), hstore_fetchval(), hstore_to_json(), hstore_to_json_loose(), inet_abbrev(), initcap(), int4_to_char(), int8_to_char(), interval_to_char(), json_agg_finalfn(), json_array_element(), json_array_element_text(), json_build_array(), json_build_array_noargs(), json_build_object(), json_build_object_noargs(), json_in(), json_object(), json_object_agg_finalfn(), json_object_field(), json_object_field_text(), json_object_two_arg(), json_recv(), json_strip_nulls(), json_typeof(), jsonb_array_element_text(), jsonb_object_field_text(), jsonb_pretty(), jsonb_typeof(), like_escape(), lower(), lpad(), ltrim(), ltrim1(), md5_bytea(), md5_text(), metaphone(), name_text(), network_host(), network_show(), numeric_to_char(), oidvectortypes(), pg_armor(), pg_collation_actual_version(), pg_collation_for(), pg_crypt(), pg_current_logfile(), pg_dearmor(), pg_describe_object(), pg_export_snapshot(), pg_gen_salt(), pg_gen_salt_rounds(), pg_get_constraintdef(), pg_get_constraintdef_ext(), pg_get_expr(), pg_get_expr_ext(), pg_get_function_arg_default(), pg_get_function_arguments(), pg_get_function_identity_arguments(), pg_get_function_result(), pg_get_functiondef(), pg_get_indexdef(), pg_get_indexdef_ext(), pg_get_partkeydef(), pg_get_ruledef(), pg_get_ruledef_ext(), pg_get_serial_sequence(), pg_get_statisticsextdef(), pg_get_triggerdef(), pg_get_triggerdef_ext(), pg_get_viewdef(), pg_get_viewdef_ext(), pg_get_viewdef_name(), pg_get_viewdef_name_ext(), pg_get_viewdef_wrap(), pg_read_file(), pg_relation_filepath(), pg_size_pretty(), pg_size_pretty_numeric(), pg_stat_get_backend_activity(), pg_stat_get_backend_wait_event(), pg_stat_get_backend_wait_event_type(), pg_tablespace_location(), pg_walfile_name(), pgp_key_id_w(), pgp_pub_decrypt_bytea(), pgp_pub_decrypt_text(), pgp_pub_encrypt_bytea(), pgp_pub_encrypt_text(), pgp_sym_decrypt_bytea(), pgp_sym_decrypt_text(), pgp_sym_encrypt_bytea(), pgp_sym_encrypt_text(), pgsql_version(), quote_ident(), quote_literal(), quote_nullable(), repeat(), replace_text(), row_to_json(), row_to_json_pretty(), rpad(), rtrim(), rtrim1(), sepgsql_getcon(), sepgsql_mcstrans_in(), sepgsql_mcstrans_out(), set_config_by_name(), show_config_by_name(), show_config_by_name_missing_ok(), similar_escape(), soundex(), split_text(), ssl_cipher(), ssl_version(), string_agg_finalfn(), text_concat(), text_concat_ws(), text_format(), text_larger(), text_left(), text_reverse(), text_right(), text_smaller(), text_substr(), text_substr_no_len(), textcat(), textin(), textoverlay(), textoverlay_no_len(), textrecv(), textregexreplace(), textregexreplace_noopt(), timeofday(), timestamp_to_char(), timestamptz_to_char(), to_ascii_default(), to_ascii_enc(), to_ascii_encname(), to_hex32(), to_hex64(), to_json(), translate(), tsquerytree(), txid_status(), unaccent_dict(), upper(), X509_NAME_to_text(), xml_encode_special_chars(), xmltotext(), xpath_list(), xpath_nodeset(), xpath_string(), and xslt_process().

#define PG_RETURN_UINT16 (   x)    return UInt16GetDatum(x)

Definition at line 309 of file fmgr.h.

#define PG_RETURN_UINT32 (   x)    return UInt32GetDatum(x)

Definition at line 307 of file fmgr.h.

Referenced by hash_aclitem(), hash_array(), hash_numeric(), hashfloat4(), hashfloat8(), and timetz_hash().

#define PG_RETURN_VARCHAR_P (   x)    PG_RETURN_POINTER(x)

Definition at line 324 of file fmgr.h.

Referenced by varchar(), varcharin(), and varcharrecv().

#define PG_RETURN_VOID ( )    return (Datum) 0

Definition at line 301 of file fmgr.h.

Referenced by anyarray_in(), anyarray_recv(), anyenum_in(), anyrange_in(), ascii_to_mic(), ascii_to_utf8(), be_lo_put(), big5_to_euc_tw(), big5_to_mic(), big5_to_utf8(), binary_upgrade_create_empty_extension(), binary_upgrade_set_next_array_pg_type_oid(), binary_upgrade_set_next_heap_pg_class_oid(), binary_upgrade_set_next_index_pg_class_oid(), binary_upgrade_set_next_pg_authid_oid(), binary_upgrade_set_next_pg_enum_oid(), binary_upgrade_set_next_pg_type_oid(), binary_upgrade_set_next_toast_pg_class_oid(), binary_upgrade_set_next_toast_pg_type_oid(), binary_upgrade_set_record_init_privs(), bpchar_sortsupport(), brin_inclusion_union(), brin_minmax_union(), bt_index_check(), bt_index_parent_check(), btbpchar_pattern_sortsupport(), btfloat4sortsupport(), btfloat8sortsupport(), btint2sortsupport(), btint4sortsupport(), btint8sortsupport(), btnamesortsupport(), btoidsortsupport(), bttext_pattern_sortsupport(), bttextsortsupport(), bytea_sortsupport(), date_sortsupport(), dblink_fdw_validator(), dummy_seclabel_dummy(), euc_cn_to_mic(), euc_cn_to_utf8(), euc_jis_2004_to_shift_jis_2004(), euc_jis_2004_to_utf8(), euc_jp_to_mic(), euc_jp_to_sjis(), euc_jp_to_utf8(), euc_kr_to_mic(), euc_kr_to_utf8(), euc_tw_to_big5(), euc_tw_to_mic(), euc_tw_to_utf8(), file_fdw_validator(), fmgr_c_validator(), fmgr_internal_validator(), fmgr_sql_validator(), gb18030_to_utf8(), gbk_to_utf8(), inet_spg_choose(), inet_spg_config(), inet_spg_inner_consistent(), inet_spg_picksplit(), iso8859_1_to_utf8(), iso8859_to_utf8(), iso_to_koi8r(), iso_to_mic(), iso_to_win1251(), iso_to_win866(), johab_to_utf8(), koi8r_to_iso(), koi8r_to_mic(), koi8r_to_utf8(), koi8r_to_win1251(), koi8r_to_win866(), koi8u_to_utf8(), latin1_to_mic(), latin2_to_mic(), latin2_to_win1250(), latin3_to_mic(), latin4_to_mic(), mic_to_ascii(), mic_to_big5(), mic_to_euc_cn(), mic_to_euc_jp(), mic_to_euc_kr(), mic_to_euc_tw(), mic_to_iso(), mic_to_koi8r(), mic_to_latin1(), mic_to_latin2(), mic_to_latin3(), mic_to_latin4(), mic_to_sjis(), mic_to_win1250(), mic_to_win1251(), mic_to_win866(), numeric_sortsupport(), pg_advisory_lock_int4(), pg_advisory_lock_int8(), pg_advisory_lock_shared_int4(), pg_advisory_lock_shared_int8(), pg_advisory_unlock_all(), pg_advisory_xact_lock_int4(), pg_advisory_xact_lock_int8(), pg_advisory_xact_lock_shared_int4(), pg_advisory_xact_lock_shared_int8(), pg_ddl_command_in(), pg_ddl_command_out(), pg_ddl_command_recv(), pg_ddl_command_send(), pg_drop_replication_slot(), pg_event_trigger_ddl_commands(), pg_extension_config_dump(), pg_import_system_collations(), pg_ndistinct_in(), pg_ndistinct_recv(), pg_node_tree_in(), pg_node_tree_recv(), pg_notify(), pg_replication_origin_advance(), pg_replication_origin_drop(), pg_replication_origin_session_reset(), pg_replication_origin_session_setup(), pg_replication_origin_xact_reset(), pg_replication_origin_xact_setup(), pg_sleep(), pg_stat_clear_snapshot(), pg_stat_reset(), pg_stat_reset_shared(), pg_stat_reset_single_function_counters(), pg_stat_reset_single_table_counters(), pg_stat_statements_reset(), pg_truncate_visibility_map(), pg_wal_replay_pause(), pg_wal_replay_resume(), plperl_inline_handler(), plperl_validator(), plpgsql_validator(), plpython_inline_handler(), plpython_validator(), postgres_fdw_validator(), prsd_end(), regress_putenv(), setseed(), shell_in(), shell_out(), shift_jis_2004_to_euc_jis_2004(), shift_jis_2004_to_utf8(), sjis_to_euc_jp(), sjis_to_mic(), sjis_to_utf8(), spg_box_quad_choose(), spg_box_quad_config(), spg_box_quad_inner_consistent(), spg_box_quad_picksplit(), spg_kd_choose(), spg_kd_config(), spg_kd_inner_consistent(), spg_kd_picksplit(), spg_quad_choose(), spg_quad_config(), spg_quad_inner_consistent(), spg_quad_picksplit(), spg_range_quad_choose(), spg_range_quad_config(), spg_range_quad_inner_consistent(), spg_range_quad_picksplit(), spg_text_choose(), spg_text_config(), spg_text_inner_consistent(), spg_text_picksplit(), test_shm_mq(), test_shm_mq_pipelined(), testprs_end(), timestamp_sortsupport(), uhc_to_utf8(), utf8_to_ascii(), utf8_to_big5(), utf8_to_euc_cn(), utf8_to_euc_jis_2004(), utf8_to_euc_jp(), utf8_to_euc_kr(), utf8_to_euc_tw(), utf8_to_gb18030(), utf8_to_gbk(), utf8_to_iso8859(), utf8_to_iso8859_1(), utf8_to_johab(), utf8_to_koi8r(), utf8_to_koi8u(), utf8_to_shift_jis_2004(), utf8_to_sjis(), utf8_to_uhc(), utf8_to_win(), uuid_sortsupport(), void_in(), void_recv(), wait_pid(), win1250_to_latin2(), win1250_to_mic(), win1251_to_iso(), win1251_to_koi8r(), win1251_to_mic(), win1251_to_win866(), win866_to_iso(), win866_to_koi8r(), win866_to_mic(), win866_to_win1251(), and win_to_utf8().

Typedef Documentation

Definition at line 23 of file fmgr.h.

typedef void(* fmExprContextCallbackFunction)(Datum arg)

Definition at line 26 of file fmgr.h.

typedef void(* fmgr_hook_type)(FmgrHookEventType event, FmgrInfo *flinfo, Datum *arg)

Definition at line 714 of file fmgr.h.

Definition at line 22 of file fmgr.h.

Definition at line 29 of file fmgr.h.

Definition at line 38 of file fmgr.h.

typedef bool(* needs_fmgr_hook_type)(Oid fn_oid)

Definition at line 712 of file fmgr.h.

typedef const Pg_finfo_record*(* PGFInfoFunction)(void)

Definition at line 351 of file fmgr.h.

typedef Datum(* PGFunction)(FunctionCallInfo fcinfo)

Definition at line 40 of file fmgr.h.

typedef const Pg_magic_struct*(* PGModuleMagicFunction)(void)

Definition at line 430 of file fmgr.h.

Enumeration Type Documentation

Enumerator
FHET_START 
FHET_END 
FHET_ABORT 

Definition at line 705 of file fmgr.h.

706 {
707  FHET_START,
708  FHET_END,
709  FHET_ABORT
FmgrHookEventType
Definition: fmgr.h:705
Definition: fmgr.h:708

Function Documentation

int AggCheckCallContext ( FunctionCallInfo  fcinfo,
MemoryContext aggcontext 
)

Definition at line 3660 of file nodeAgg.c.

References AGG_CONTEXT_AGGREGATE, AGG_CONTEXT_WINDOW, AggState::aggcontexts, FunctionCallInfoData::context, AggState::current_set, ExprContext::ecxt_per_tuple_memory, IsA, and NULL.

Referenced by array_agg_array_finalfn(), array_agg_array_transfn(), array_agg_finalfn(), array_agg_transfn(), bytea_string_agg_finalfn(), fetch_array_arg_replace_nulls(), float4_accum(), float8_accum(), float8_combine(), float8_regr_accum(), float8_regr_combine(), hypothetical_dense_rank_final(), hypothetical_rank_common(), int2_avg_accum(), int2_avg_accum_inv(), int2_sum(), int4_avg_accum(), int4_avg_accum_inv(), int4_avg_combine(), int4_sum(), int8_avg_combine(), int8_avg_deserialize(), int8_avg_serialize(), int8dec(), int8inc(), json_agg_finalfn(), json_agg_transfn(), json_object_agg_finalfn(), json_object_agg_transfn(), jsonb_agg_finalfn(), jsonb_agg_transfn(), jsonb_object_agg_finalfn(), jsonb_object_agg_transfn(), makeBoolAggState(), makeNumericAggState(), makeStringAggState(), mode_final(), numeric_avg_combine(), numeric_avg_deserialize(), numeric_avg_serialize(), numeric_combine(), numeric_deserialize(), numeric_poly_combine(), numeric_poly_deserialize(), numeric_poly_serialize(), numeric_serialize(), ordered_set_startup(), percentile_cont_final_common(), percentile_cont_multi_final_common(), percentile_disc_final(), percentile_disc_multi_final(), and string_agg_finalfn().

3661 {
3662  if (fcinfo->context && IsA(fcinfo->context, AggState))
3663  {
3664  if (aggcontext)
3665  {
3666  AggState *aggstate = ((AggState *) fcinfo->context);
3667  ExprContext *cxt = aggstate->aggcontexts[aggstate->current_set];
3668 
3669  *aggcontext = cxt->ecxt_per_tuple_memory;
3670  }
3671  return AGG_CONTEXT_AGGREGATE;
3672  }
3673  if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
3674  {
3675  if (aggcontext)
3676  *aggcontext = ((WindowAggState *) fcinfo->context)->curaggcontext;
3677  return AGG_CONTEXT_WINDOW;
3678  }
3679 
3680  /* this is just to prevent "uninitialized variable" warnings */
3681  if (aggcontext)
3682  *aggcontext = NULL;
3683  return 0;
3684 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:573
fmNodePtr context
Definition: fmgr.h:72
MemoryContext ecxt_per_tuple_memory
Definition: execnodes.h:136
int current_set
Definition: execnodes.h:1966
#define AGG_CONTEXT_AGGREGATE
Definition: fmgr.h:685
ExprContext ** aggcontexts
Definition: execnodes.h:1960
#define NULL
Definition: c.h:229
#define AGG_CONTEXT_WINDOW
Definition: fmgr.h:686
fmAggrefPtr AggGetAggref ( FunctionCallInfo  fcinfo)

Definition at line 3697 of file nodeAgg.c.

References AggStatePerTransData::aggref, FunctionCallInfoData::context, IsA, and NULL.

Referenced by ordered_set_startup().

3698 {
3699  if (fcinfo->context && IsA(fcinfo->context, AggState))
3700  {
3701  AggStatePerTrans curpertrans;
3702 
3703  curpertrans = ((AggState *) fcinfo->context)->curpertrans;
3704 
3705  if (curpertrans)
3706  return curpertrans->aggref;
3707  }
3708  return NULL;
3709 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:573
fmNodePtr context
Definition: fmgr.h:72
#define NULL
Definition: c.h:229
MemoryContext AggGetTempMemoryContext ( FunctionCallInfo  fcinfo)

Definition at line 3722 of file nodeAgg.c.

References FunctionCallInfoData::context, ExprContext::ecxt_per_tuple_memory, IsA, NULL, and AggState::tmpcontext.

Referenced by hypothetical_dense_rank_final().

3723 {
3724  if (fcinfo->context && IsA(fcinfo->context, AggState))
3725  {
3726  AggState *aggstate = (AggState *) fcinfo->context;
3727 
3728  return aggstate->tmpcontext->ecxt_per_tuple_memory;
3729  }
3730  return NULL;
3731 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:573
fmNodePtr context
Definition: fmgr.h:72
MemoryContext ecxt_per_tuple_memory
Definition: execnodes.h:136
ExprContext * tmpcontext
Definition: execnodes.h:1961
#define NULL
Definition: c.h:229
void AggRegisterCallback ( FunctionCallInfo  fcinfo,
fmExprContextCallbackFunction  func,
Datum  arg 
)

Definition at line 3749 of file nodeAgg.c.

References AggState::aggcontexts, FunctionCallInfoData::context, AggState::current_set, elog, ERROR, IsA, and RegisterExprContextCallback().

Referenced by ordered_set_startup().

3752 {
3753  if (fcinfo->context && IsA(fcinfo->context, AggState))
3754  {
3755  AggState *aggstate = (AggState *) fcinfo->context;
3756  ExprContext *cxt = aggstate->aggcontexts[aggstate->current_set];
3757 
3758  RegisterExprContextCallback(cxt, func, arg);
3759 
3760  return;
3761  }
3762  elog(ERROR, "aggregate function cannot register a callback in this context");
3763 }
#define IsA(nodeptr, _type_)
Definition: nodes.h:573
fmNodePtr context
Definition: fmgr.h:72
int current_set
Definition: execnodes.h:1966
#define ERROR
Definition: elog.h:43
ExprContext ** aggcontexts
Definition: execnodes.h:1960
void RegisterExprContextCallback(ExprContext *econtext, ExprContextCallbackFunction function, Datum arg)
Definition: execUtils.c:872
void * arg
#define elog
Definition: elog.h:219
Datum CallerFInfoFunctionCall1 ( PGFunction  func,
FmgrInfo flinfo,
Oid  collation,
Datum  arg1 
)

Definition at line 1289 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

1290 {
1291  FunctionCallInfoData fcinfo;
1292  Datum result;
1293 
1294  InitFunctionCallInfoData(fcinfo, flinfo, 1, collation, NULL, NULL);
1295 
1296  fcinfo.arg[0] = arg1;
1297  fcinfo.argnull[0] = false;
1298 
1299  result = (*func) (&fcinfo);
1300 
1301  /* Check for null result, since caller is clearly not expecting one */
1302  if (fcinfo.isnull)
1303  elog(ERROR, "function %p returned NULL", (void *) func);
1304 
1305  return result;
1306 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum CallerFInfoFunctionCall2 ( PGFunction  func,
FmgrInfo flinfo,
Oid  collation,
Datum  arg1,
Datum  arg2 
)

Definition at line 1309 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

Referenced by gbt_enumge(), gbt_enumgt(), gbt_enumkey_cmp(), gbt_enumle(), gbt_enumlt(), gin_btree_compare_prefix(), and gin_enum_cmp().

1310 {
1311  FunctionCallInfoData fcinfo;
1312  Datum result;
1313 
1314  InitFunctionCallInfoData(fcinfo, flinfo, 2, collation, NULL, NULL);
1315 
1316  fcinfo.arg[0] = arg1;
1317  fcinfo.arg[1] = arg2;
1318  fcinfo.argnull[0] = false;
1319  fcinfo.argnull[1] = false;
1320 
1321  result = (*func) (&fcinfo);
1322 
1323  /* Check for null result, since caller is clearly not expecting one */
1324  if (fcinfo.isnull)
1325  elog(ERROR, "function %p returned NULL", (void *) func);
1326 
1327  return result;
1328 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
bool CheckFunctionValidatorAccess ( Oid  validatorOid,
Oid  functionOid 
)

Definition at line 2462 of file fmgr.c.

References ACL_EXECUTE, ACL_KIND_LANGUAGE, ACL_KIND_PROC, ACL_USAGE, aclcheck_error(), ACLCHECK_OK, elog, ereport, errcode(), errmsg(), ERROR, GETSTRUCT, GetUserId(), HeapTupleIsValid, LANGOID, NameStr, ObjectIdGetDatum, pg_language_aclcheck(), pg_proc_aclcheck(), PROCOID, ReleaseSysCache(), and SearchSysCache1.

Referenced by fmgr_c_validator(), fmgr_internal_validator(), fmgr_sql_validator(), plperl_validator(), plpgsql_validator(), and plpython_validator().

2463 {
2464  HeapTuple procTup;
2465  HeapTuple langTup;
2466  Form_pg_proc procStruct;
2467  Form_pg_language langStruct;
2468  AclResult aclresult;
2469 
2470  /*
2471  * Get the function's pg_proc entry. Throw a user-facing error for bad
2472  * OID, because validators can be called with user-specified OIDs.
2473  */
2474  procTup = SearchSysCache1(PROCOID, ObjectIdGetDatum(functionOid));
2475  if (!HeapTupleIsValid(procTup))
2476  ereport(ERROR,
2477  (errcode(ERRCODE_UNDEFINED_FUNCTION),
2478  errmsg("function with OID %u does not exist", functionOid)));
2479  procStruct = (Form_pg_proc) GETSTRUCT(procTup);
2480 
2481  /*
2482  * Fetch pg_language entry to know if this is the correct validation
2483  * function for that pg_proc entry.
2484  */
2485  langTup = SearchSysCache1(LANGOID, ObjectIdGetDatum(procStruct->prolang));
2486  if (!HeapTupleIsValid(langTup))
2487  elog(ERROR, "cache lookup failed for language %u", procStruct->prolang);
2488  langStruct = (Form_pg_language) GETSTRUCT(langTup);
2489 
2490  if (langStruct->lanvalidator != validatorOid)
2491  ereport(ERROR,
2492  (errcode(ERRCODE_INSUFFICIENT_PRIVILEGE),
2493  errmsg("language validation function %u called for language %u instead of %u",
2494  validatorOid, procStruct->prolang,
2495  langStruct->lanvalidator)));
2496 
2497  /* first validate that we have permissions to use the language */
2498  aclresult = pg_language_aclcheck(procStruct->prolang, GetUserId(),
2499  ACL_USAGE);
2500  if (aclresult != ACLCHECK_OK)
2501  aclcheck_error(aclresult, ACL_KIND_LANGUAGE,
2502  NameStr(langStruct->lanname));
2503 
2504  /*
2505  * Check whether we are allowed to execute the function itself. If we can
2506  * execute it, there should be no possible side-effect of
2507  * compiling/validation that execution can't have.
2508  */
2509  aclresult = pg_proc_aclcheck(functionOid, GetUserId(), ACL_EXECUTE);
2510  if (aclresult != ACLCHECK_OK)
2511  aclcheck_error(aclresult, ACL_KIND_PROC, NameStr(procStruct->proname));
2512 
2513  ReleaseSysCache(procTup);
2514  ReleaseSysCache(langTup);
2515 
2516  return true;
2517 }
#define GETSTRUCT(TUP)
Definition: htup_details.h:656
Oid GetUserId(void)
Definition: miscinit.c:283
int errcode(int sqlerrcode)
Definition: elog.c:575
AclResult pg_language_aclcheck(Oid lang_oid, Oid roleid, AclMode mode)
Definition: aclchk.c:4441
#define SearchSysCache1(cacheId, key1)
Definition: syscache.h:152
#define ObjectIdGetDatum(X)
Definition: postgres.h:513
#define ERROR
Definition: elog.h:43
void aclcheck_error(AclResult aclerr, AclObjectKind objectkind, const char *objectname)
Definition: aclchk.c:3382
#define ACL_USAGE
Definition: parsenodes.h:73
#define ereport(elevel, rest)
Definition: elog.h:122
AclResult
Definition: acl.h:170
void ReleaseSysCache(HeapTuple tuple)
Definition: syscache.c:1116
FormData_pg_proc * Form_pg_proc
Definition: pg_proc.h:83
#define HeapTupleIsValid(tuple)
Definition: htup.h:77
FormData_pg_language * Form_pg_language
Definition: pg_language.h:51
int errmsg(const char *fmt,...)
Definition: elog.c:797
#define ACL_EXECUTE
Definition: parsenodes.h:72
AclResult pg_proc_aclcheck(Oid proc_oid, Oid roleid, AclMode mode)
Definition: aclchk.c:4429
#define NameStr(name)
Definition: c.h:499
#define elog
Definition: elog.h:219
void clear_external_function_hash ( void *  filehandle)

Definition at line 567 of file fmgr.c.

References hash_destroy(), and NULL.

Referenced by internal_unload_library().

568 {
569  if (CFuncHash)
571  CFuncHash = NULL;
572 }
void hash_destroy(HTAB *hashp)
Definition: dynahash.c:793
static HTAB * CFuncHash
Definition: fmgr.c:83
#define NULL
Definition: c.h:229
Datum DirectFunctionCall1Coll ( PGFunction  func,
Oid  collation,
Datum  arg1 
)

Definition at line 1016 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

Referenced by Generic_Text_IC_like(), and libpqrcv_create_slot().

1017 {
1018  FunctionCallInfoData fcinfo;
1019  Datum result;
1020 
1021  InitFunctionCallInfoData(fcinfo, NULL, 1, collation, NULL, NULL);
1022 
1023  fcinfo.arg[0] = arg1;
1024  fcinfo.argnull[0] = false;
1025 
1026  result = (*func) (&fcinfo);
1027 
1028  /* Check for null result, since caller is clearly not expecting one */
1029  if (fcinfo.isnull)
1030  elog(ERROR, "function %p returned NULL", (void *) func);
1031 
1032  return result;
1033 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall2Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2 
)

Definition at line 1036 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

Referenced by gbt_textcmp(), gbt_texteq(), gbt_textge(), gbt_textgt(), gbt_textle(), and gbt_textlt().

1037 {
1038  FunctionCallInfoData fcinfo;
1039  Datum result;
1040 
1041  InitFunctionCallInfoData(fcinfo, NULL, 2, collation, NULL, NULL);
1042 
1043  fcinfo.arg[0] = arg1;
1044  fcinfo.arg[1] = arg2;
1045  fcinfo.argnull[0] = false;
1046  fcinfo.argnull[1] = false;
1047 
1048  result = (*func) (&fcinfo);
1049 
1050  /* Check for null result, since caller is clearly not expecting one */
1051  if (fcinfo.isnull)
1052  elog(ERROR, "function %p returned NULL", (void *) func);
1053 
1054  return result;
1055 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall3Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3 
)

Definition at line 1058 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

1060 {
1061  FunctionCallInfoData fcinfo;
1062  Datum result;
1063 
1064  InitFunctionCallInfoData(fcinfo, NULL, 3, collation, NULL, NULL);
1065 
1066  fcinfo.arg[0] = arg1;
1067  fcinfo.arg[1] = arg2;
1068  fcinfo.arg[2] = arg3;
1069  fcinfo.argnull[0] = false;
1070  fcinfo.argnull[1] = false;
1071  fcinfo.argnull[2] = false;
1072 
1073  result = (*func) (&fcinfo);
1074 
1075  /* Check for null result, since caller is clearly not expecting one */
1076  if (fcinfo.isnull)
1077  elog(ERROR, "function %p returned NULL", (void *) func);
1078 
1079  return result;
1080 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall4Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3,
Datum  arg4 
)

Definition at line 1083 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

Referenced by execute_extension_script().

1085 {
1086  FunctionCallInfoData fcinfo;
1087  Datum result;
1088 
1089  InitFunctionCallInfoData(fcinfo, NULL, 4, collation, NULL, NULL);
1090 
1091  fcinfo.arg[0] = arg1;
1092  fcinfo.arg[1] = arg2;
1093  fcinfo.arg[2] = arg3;
1094  fcinfo.arg[3] = arg4;
1095  fcinfo.argnull[0] = false;
1096  fcinfo.argnull[1] = false;
1097  fcinfo.argnull[2] = false;
1098  fcinfo.argnull[3] = false;
1099 
1100  result = (*func) (&fcinfo);
1101 
1102  /* Check for null result, since caller is clearly not expecting one */
1103  if (fcinfo.isnull)
1104  elog(ERROR, "function %p returned NULL", (void *) func);
1105 
1106  return result;
1107 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall5Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3,
Datum  arg4,
Datum  arg5 
)

Definition at line 1110 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

1112 {
1113  FunctionCallInfoData fcinfo;
1114  Datum result;
1115 
1116  InitFunctionCallInfoData(fcinfo, NULL, 5, collation, NULL, NULL);
1117 
1118  fcinfo.arg[0] = arg1;
1119  fcinfo.arg[1] = arg2;
1120  fcinfo.arg[2] = arg3;
1121  fcinfo.arg[3] = arg4;
1122  fcinfo.arg[4] = arg5;
1123  fcinfo.argnull[0] = false;
1124  fcinfo.argnull[1] = false;
1125  fcinfo.argnull[2] = false;
1126  fcinfo.argnull[3] = false;
1127  fcinfo.argnull[4] = false;
1128 
1129  result = (*func) (&fcinfo);
1130 
1131  /* Check for null result, since caller is clearly not expecting one */
1132  if (fcinfo.isnull)
1133  elog(ERROR, "function %p returned NULL", (void *) func);
1134 
1135  return result;
1136 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall6Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3,
Datum  arg4,
Datum  arg5,
Datum  arg6 
)

Definition at line 1139 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

1142 {
1143  FunctionCallInfoData fcinfo;
1144  Datum result;
1145 
1146  InitFunctionCallInfoData(fcinfo, NULL, 6, collation, NULL, NULL);
1147 
1148  fcinfo.arg[0] = arg1;
1149  fcinfo.arg[1] = arg2;
1150  fcinfo.arg[2] = arg3;
1151  fcinfo.arg[3] = arg4;
1152  fcinfo.arg[4] = arg5;
1153  fcinfo.arg[5] = arg6;
1154  fcinfo.argnull[0] = false;
1155  fcinfo.argnull[1] = false;
1156  fcinfo.argnull[2] = false;
1157  fcinfo.argnull[3] = false;
1158  fcinfo.argnull[4] = false;
1159  fcinfo.argnull[5] = false;
1160 
1161  result = (*func) (&fcinfo);
1162 
1163  /* Check for null result, since caller is clearly not expecting one */
1164  if (fcinfo.isnull)
1165  elog(ERROR, "function %p returned NULL", (void *) func);
1166 
1167  return result;
1168 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall7Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3,
Datum  arg4,
Datum  arg5,
Datum  arg6,
Datum  arg7 
)

Definition at line 1171 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

1174 {
1175  FunctionCallInfoData fcinfo;
1176  Datum result;
1177 
1178  InitFunctionCallInfoData(fcinfo, NULL, 7, collation, NULL, NULL);
1179 
1180  fcinfo.arg[0] = arg1;
1181  fcinfo.arg[1] = arg2;
1182  fcinfo.arg[2] = arg3;
1183  fcinfo.arg[3] = arg4;
1184  fcinfo.arg[4] = arg5;
1185  fcinfo.arg[5] = arg6;
1186  fcinfo.arg[6] = arg7;
1187  fcinfo.argnull[0] = false;
1188  fcinfo.argnull[1] = false;
1189  fcinfo.argnull[2] = false;
1190  fcinfo.argnull[3] = false;
1191  fcinfo.argnull[4] = false;
1192  fcinfo.argnull[5] = false;
1193  fcinfo.argnull[6] = false;
1194 
1195  result = (*func) (&fcinfo);
1196 
1197  /* Check for null result, since caller is clearly not expecting one */
1198  if (fcinfo.isnull)
1199  elog(ERROR, "function %p returned NULL", (void *) func);
1200 
1201  return result;
1202 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall8Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3,
Datum  arg4,
Datum  arg5,
Datum  arg6,
Datum  arg7,
Datum  arg8 
)

Definition at line 1205 of file fmgr.c.

References FunctionCallInfoData::arg, FunctionCallInfoData::argnull, elog, ERROR, InitFunctionCallInfoData, FunctionCallInfoData::isnull, NULL, and result.

1208 {
1209  FunctionCallInfoData fcinfo;
1210  Datum result;
1211 
1212  InitFunctionCallInfoData(fcinfo, NULL, 8, collation, NULL, NULL);
1213 
1214  fcinfo.arg[0] = arg1;
1215  fcinfo.arg[1] = arg2;
1216  fcinfo.arg[2] = arg3;
1217  fcinfo.arg[3] = arg4;
1218  fcinfo.arg[4] = arg5;
1219  fcinfo.arg[5] = arg6;
1220  fcinfo.arg[6] = arg7;
1221  fcinfo.arg[7] = arg8;
1222  fcinfo.argnull[0] = false;
1223  fcinfo.argnull[1] = false;
1224  fcinfo.argnull[2] = false;
1225  fcinfo.argnull[3] = false;
1226  fcinfo.argnull[4] = false;
1227  fcinfo.argnull[5] = false;
1228  fcinfo.argnull[6] = false;
1229  fcinfo.argnull[7] = false;
1230 
1231  result = (*func) (&fcinfo);
1232 
1233  /* Check for null result, since caller is clearly not expecting one */
1234  if (fcinfo.isnull)
1235  elog(ERROR, "function %p returned NULL", (void *) func);
1236 
1237  return result;
1238 }
return result
Definition: formatting.c:1618
#define ERROR
Definition: elog.h:43
bool argnull[FUNC_MAX_ARGS]
Definition: fmgr.h:78
uintptr_t Datum
Definition: postgres.h:372
Datum arg[FUNC_MAX_ARGS]
Definition: fmgr.h:77
#define NULL
Definition: c.h:229
#define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo)
Definition: fmgr.h:112
#define elog
Definition: elog.h:219
Datum DirectFunctionCall9Coll ( PGFunction  func,
Oid  collation,
Datum  arg1,
Datum  arg2,
Datum  arg3,
Datum  arg4,
Datum  arg5,
Datum  arg6,
Datum  arg7,
Datum  arg8