91 #define FIELDNO_FUNCTIONCALLINFODATA_ISNULL 4
94 #define FIELDNO_FUNCTIONCALLINFODATA_ARGS 6
102 #define SizeForFunctionCallInfo(nargs) \
103 (offsetof(FunctionCallInfoBaseData, args) + \
104 sizeof(NullableDatum) * (nargs))
110 #define LOCAL_FCINFO(name, nargs) \
114 FunctionCallInfoBaseData fcinfo; \
116 char fcinfo_data[SizeForFunctionCallInfo(nargs)]; \
118 FunctionCallInfo name = &name##data.fcinfo
135 #define fmgr_info_set_expr(expr, finfo) \
136 ((finfo)->fn_expr = (expr))
150 #define InitFunctionCallInfoData(Fcinfo, Flinfo, Nargs, Collation, Context, Resultinfo) \
152 (Fcinfo).flinfo = (Flinfo); \
153 (Fcinfo).context = (Context); \
154 (Fcinfo).resultinfo = (Resultinfo); \
155 (Fcinfo).fncollation = (Collation); \
156 (Fcinfo).isnull = false; \
157 (Fcinfo).nargs = (Nargs); \
172 #define FunctionCallInvoke(fcinfo) ((* (fcinfo)->flinfo->fn_addr) (fcinfo))
193 #define PG_FUNCTION_ARGS FunctionCallInfo fcinfo
198 #define PG_GET_COLLATION() (fcinfo->fncollation)
203 #define PG_NARGS() (fcinfo->nargs)
209 #define PG_ARGISNULL(n) (fcinfo->args[n].isnull)
240 #define PG_DETOAST_DATUM(datum) \
241 pg_detoast_datum((struct varlena *) DatumGetPointer(datum))
242 #define PG_DETOAST_DATUM_COPY(datum) \
243 pg_detoast_datum_copy((struct varlena *) DatumGetPointer(datum))
244 #define PG_DETOAST_DATUM_SLICE(datum,f,c) \
245 pg_detoast_datum_slice((struct varlena *) DatumGetPointer(datum), \
246 (int32) (f), (int32) (c))
248 #define PG_DETOAST_DATUM_PACKED(datum) \
249 pg_detoast_datum_packed((struct varlena *) DatumGetPointer(datum))
260 #define PG_FREE_IF_COPY(ptr,n) \
262 if ((Pointer) (ptr) != PG_GETARG_POINTER(n)) \
268 #define PG_GETARG_DATUM(n) (fcinfo->args[n].value)
269 #define PG_GETARG_INT32(n) DatumGetInt32(PG_GETARG_DATUM(n))
270 #define PG_GETARG_UINT32(n) DatumGetUInt32(PG_GETARG_DATUM(n))
271 #define PG_GETARG_INT16(n) DatumGetInt16(PG_GETARG_DATUM(n))
272 #define PG_GETARG_UINT16(n) DatumGetUInt16(PG_GETARG_DATUM(n))
273 #define PG_GETARG_CHAR(n) DatumGetChar(PG_GETARG_DATUM(n))
274 #define PG_GETARG_BOOL(n) DatumGetBool(PG_GETARG_DATUM(n))
275 #define PG_GETARG_OID(n) DatumGetObjectId(PG_GETARG_DATUM(n))
276 #define PG_GETARG_POINTER(n) DatumGetPointer(PG_GETARG_DATUM(n))
277 #define PG_GETARG_CSTRING(n) DatumGetCString(PG_GETARG_DATUM(n))
278 #define PG_GETARG_NAME(n) DatumGetName(PG_GETARG_DATUM(n))
279 #define PG_GETARG_TRANSACTIONID(n) DatumGetTransactionId(PG_GETARG_DATUM(n))
281 #define PG_GETARG_FLOAT4(n) DatumGetFloat4(PG_GETARG_DATUM(n))
282 #define PG_GETARG_FLOAT8(n) DatumGetFloat8(PG_GETARG_DATUM(n))
283 #define PG_GETARG_INT64(n) DatumGetInt64(PG_GETARG_DATUM(n))
285 #define PG_GETARG_RAW_VARLENA_P(n) ((struct varlena *) PG_GETARG_POINTER(n))
287 #define PG_GETARG_VARLENA_P(n) PG_DETOAST_DATUM(PG_GETARG_DATUM(n))
289 #define PG_GETARG_VARLENA_PP(n) PG_DETOAST_DATUM_PACKED(PG_GETARG_DATUM(n))
291 #define DatumGetByteaPP(X) ((bytea *) PG_DETOAST_DATUM_PACKED(X))
292 #define DatumGetTextPP(X) ((text *) PG_DETOAST_DATUM_PACKED(X))
293 #define DatumGetBpCharPP(X) ((BpChar *) PG_DETOAST_DATUM_PACKED(X))
294 #define DatumGetVarCharPP(X) ((VarChar *) PG_DETOAST_DATUM_PACKED(X))
295 #define DatumGetHeapTupleHeader(X) ((HeapTupleHeader) PG_DETOAST_DATUM(X))
297 #define DatumGetByteaPCopy(X) ((bytea *) PG_DETOAST_DATUM_COPY(X))
298 #define DatumGetTextPCopy(X) ((text *) PG_DETOAST_DATUM_COPY(X))
299 #define DatumGetBpCharPCopy(X) ((BpChar *) PG_DETOAST_DATUM_COPY(X))
300 #define DatumGetVarCharPCopy(X) ((VarChar *) PG_DETOAST_DATUM_COPY(X))
301 #define DatumGetHeapTupleHeaderCopy(X) ((HeapTupleHeader) PG_DETOAST_DATUM_COPY(X))
303 #define DatumGetByteaPSlice(X,m,n) ((bytea *) PG_DETOAST_DATUM_SLICE(X,m,n))
304 #define DatumGetTextPSlice(X,m,n) ((text *) PG_DETOAST_DATUM_SLICE(X,m,n))
305 #define DatumGetBpCharPSlice(X,m,n) ((BpChar *) PG_DETOAST_DATUM_SLICE(X,m,n))
306 #define DatumGetVarCharPSlice(X,m,n) ((VarChar *) PG_DETOAST_DATUM_SLICE(X,m,n))
308 #define PG_GETARG_BYTEA_PP(n) DatumGetByteaPP(PG_GETARG_DATUM(n))
309 #define PG_GETARG_TEXT_PP(n) DatumGetTextPP(PG_GETARG_DATUM(n))
310 #define PG_GETARG_BPCHAR_PP(n) DatumGetBpCharPP(PG_GETARG_DATUM(n))
311 #define PG_GETARG_VARCHAR_PP(n) DatumGetVarCharPP(PG_GETARG_DATUM(n))
312 #define PG_GETARG_HEAPTUPLEHEADER(n) DatumGetHeapTupleHeader(PG_GETARG_DATUM(n))
314 #define PG_GETARG_BYTEA_P_COPY(n) DatumGetByteaPCopy(PG_GETARG_DATUM(n))
315 #define PG_GETARG_TEXT_P_COPY(n) DatumGetTextPCopy(PG_GETARG_DATUM(n))
316 #define PG_GETARG_BPCHAR_P_COPY(n) DatumGetBpCharPCopy(PG_GETARG_DATUM(n))
317 #define PG_GETARG_VARCHAR_P_COPY(n) DatumGetVarCharPCopy(PG_GETARG_DATUM(n))
318 #define PG_GETARG_HEAPTUPLEHEADER_COPY(n) DatumGetHeapTupleHeaderCopy(PG_GETARG_DATUM(n))
320 #define PG_GETARG_BYTEA_P_SLICE(n,a,b) DatumGetByteaPSlice(PG_GETARG_DATUM(n),a,b)
321 #define PG_GETARG_TEXT_P_SLICE(n,a,b) DatumGetTextPSlice(PG_GETARG_DATUM(n),a,b)
322 #define PG_GETARG_BPCHAR_P_SLICE(n,a,b) DatumGetBpCharPSlice(PG_GETARG_DATUM(n),a,b)
323 #define PG_GETARG_VARCHAR_P_SLICE(n,a,b) DatumGetVarCharPSlice(PG_GETARG_DATUM(n),a,b)
331 #define DatumGetByteaP(X) ((bytea *) PG_DETOAST_DATUM(X))
332 #define DatumGetTextP(X) ((text *) PG_DETOAST_DATUM(X))
333 #define DatumGetBpCharP(X) ((BpChar *) PG_DETOAST_DATUM(X))
334 #define DatumGetVarCharP(X) ((VarChar *) PG_DETOAST_DATUM(X))
335 #define PG_GETARG_BYTEA_P(n) DatumGetByteaP(PG_GETARG_DATUM(n))
336 #define PG_GETARG_TEXT_P(n) DatumGetTextP(PG_GETARG_DATUM(n))
337 #define PG_GETARG_BPCHAR_P(n) DatumGetBpCharP(PG_GETARG_DATUM(n))
338 #define PG_GETARG_VARCHAR_P(n) DatumGetVarCharP(PG_GETARG_DATUM(n))
341 #define PG_HAS_OPCLASS_OPTIONS() has_fn_opclass_options(fcinfo->flinfo)
342 #define PG_GET_OPCLASS_OPTIONS() get_fn_opclass_options(fcinfo->flinfo)
345 #define PG_RETURN_NULL() \
346 do { fcinfo->isnull = true; return (Datum) 0; } while (0)
349 #define PG_RETURN_VOID() return (Datum) 0
353 #define PG_RETURN_DATUM(x) return (x)
354 #define PG_RETURN_INT32(x) return Int32GetDatum(x)
355 #define PG_RETURN_UINT32(x) return UInt32GetDatum(x)
356 #define PG_RETURN_INT16(x) return Int16GetDatum(x)
357 #define PG_RETURN_UINT16(x) return UInt16GetDatum(x)
358 #define PG_RETURN_CHAR(x) return CharGetDatum(x)
359 #define PG_RETURN_BOOL(x) return BoolGetDatum(x)
360 #define PG_RETURN_OID(x) return ObjectIdGetDatum(x)
361 #define PG_RETURN_POINTER(x) return PointerGetDatum(x)
362 #define PG_RETURN_CSTRING(x) return CStringGetDatum(x)
363 #define PG_RETURN_NAME(x) return NameGetDatum(x)
364 #define PG_RETURN_TRANSACTIONID(x) return TransactionIdGetDatum(x)
366 #define PG_RETURN_FLOAT4(x) return Float4GetDatum(x)
367 #define PG_RETURN_FLOAT8(x) return Float8GetDatum(x)
368 #define PG_RETURN_INT64(x) return Int64GetDatum(x)
369 #define PG_RETURN_UINT64(x) return UInt64GetDatum(x)
371 #define PG_RETURN_BYTEA_P(x) PG_RETURN_POINTER(x)
372 #define PG_RETURN_TEXT_P(x) PG_RETURN_POINTER(x)
373 #define PG_RETURN_BPCHAR_P(x) PG_RETURN_POINTER(x)
374 #define PG_RETURN_VARCHAR_P(x) PG_RETURN_POINTER(x)
375 #define PG_RETURN_HEAPTUPLEHEADER(x) return HeapTupleHeaderGetDatum(x)
415 #define PG_FUNCTION_INFO_V1(funcname) \
416 extern PGDLLEXPORT Datum funcname(PG_FUNCTION_ARGS); \
417 extern PGDLLEXPORT const Pg_finfo_record * CppConcat(pg_finfo_,funcname)(void); \
418 const Pg_finfo_record * \
419 CppConcat(pg_finfo_,funcname) (void) \
421 static const Pg_finfo_record my_finfo = { 1 }; \
424 extern int no_such_variable
475 #define PG_MODULE_MAGIC_DATA \
477 sizeof(Pg_magic_struct), \
478 PG_VERSION_NUM / 100, \
487 "FMGR_ABI_EXTRA too long");
495 #define PG_MAGIC_FUNCTION_NAME Pg_magic_func
496 #define PG_MAGIC_FUNCTION_NAME_STRING "Pg_magic_func"
498 #define PG_MODULE_MAGIC \
499 extern PGDLLEXPORT const Pg_magic_struct *PG_MAGIC_FUNCTION_NAME(void); \
500 const Pg_magic_struct * \
501 PG_MAGIC_FUNCTION_NAME(void) \
503 static const Pg_magic_struct Pg_magic_data = PG_MODULE_MAGIC_DATA; \
504 return &Pg_magic_data; \
506 extern int no_such_variable
641 #define DirectFunctionCall1(func, arg1) \
642 DirectFunctionCall1Coll(func, InvalidOid, arg1)
643 #define DirectFunctionCall2(func, arg1, arg2) \
644 DirectFunctionCall2Coll(func, InvalidOid, arg1, arg2)
645 #define DirectFunctionCall3(func, arg1, arg2, arg3) \
646 DirectFunctionCall3Coll(func, InvalidOid, arg1, arg2, arg3)
647 #define DirectFunctionCall4(func, arg1, arg2, arg3, arg4) \
648 DirectFunctionCall4Coll(func, InvalidOid, arg1, arg2, arg3, arg4)
649 #define DirectFunctionCall5(func, arg1, arg2, arg3, arg4, arg5) \
650 DirectFunctionCall5Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5)
651 #define DirectFunctionCall6(func, arg1, arg2, arg3, arg4, arg5, arg6) \
652 DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
653 #define DirectFunctionCall7(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
654 DirectFunctionCall7Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
655 #define DirectFunctionCall8(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
656 DirectFunctionCall8Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
657 #define DirectFunctionCall9(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
658 DirectFunctionCall9Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
659 #define FunctionCall1(flinfo, arg1) \
660 FunctionCall1Coll(flinfo, InvalidOid, arg1)
661 #define FunctionCall2(flinfo, arg1, arg2) \
662 FunctionCall2Coll(flinfo, InvalidOid, arg1, arg2)
663 #define FunctionCall3(flinfo, arg1, arg2, arg3) \
664 FunctionCall3Coll(flinfo, InvalidOid, arg1, arg2, arg3)
665 #define FunctionCall4(flinfo, arg1, arg2, arg3, arg4) \
666 FunctionCall4Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4)
667 #define FunctionCall5(flinfo, arg1, arg2, arg3, arg4, arg5) \
668 FunctionCall5Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5)
669 #define FunctionCall6(flinfo, arg1, arg2, arg3, arg4, arg5, arg6) \
670 FunctionCall6Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
671 #define FunctionCall7(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
672 FunctionCall7Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
673 #define FunctionCall8(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
674 FunctionCall8Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
675 #define FunctionCall9(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
676 FunctionCall9Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
677 #define OidFunctionCall0(functionId) \
678 OidFunctionCall0Coll(functionId, InvalidOid)
679 #define OidFunctionCall1(functionId, arg1) \
680 OidFunctionCall1Coll(functionId, InvalidOid, arg1)
681 #define OidFunctionCall2(functionId, arg1, arg2) \
682 OidFunctionCall2Coll(functionId, InvalidOid, arg1, arg2)
683 #define OidFunctionCall3(functionId, arg1, arg2, arg3) \
684 OidFunctionCall3Coll(functionId, InvalidOid, arg1, arg2, arg3)
685 #define OidFunctionCall4(functionId, arg1, arg2, arg3, arg4) \
686 OidFunctionCall4Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4)
687 #define OidFunctionCall5(functionId, arg1, arg2, arg3, arg4, arg5) \
688 OidFunctionCall5Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5)
689 #define OidFunctionCall6(functionId, arg1, arg2, arg3, arg4, arg5, arg6) \
690 OidFunctionCall6Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6)
691 #define OidFunctionCall7(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \
692 OidFunctionCall7Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7)
693 #define OidFunctionCall8(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \
694 OidFunctionCall8Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8)
695 #define OidFunctionCall9(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \
696 OidFunctionCall9Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
744 bool signalNotFound,
void **filehandle);
760 #define AGG_CONTEXT_AGGREGATE 1
761 #define AGG_CONTEXT_WINDOW 2
796 #define FmgrHookIsNeeded(fn_oid) \
797 (!needs_fmgr_hook ? false : (*needs_fmgr_hook)(fn_oid))
#define FLEXIBLE_ARRAY_MEMBER
Datum FunctionCall4Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
Datum ReceiveFunctionCall(FmgrInfo *flinfo, fmStringInfo buf, Oid typioparam, int32 typmod)
Datum OidFunctionCall2Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2)
bool get_call_expr_arg_stable(fmNodePtr expr, int argnum)
Oid get_call_expr_argtype(fmNodePtr expr, int argnum)
void set_fn_opclass_options(FmgrInfo *flinfo, bytea *options)
Oid fmgr_internal_function(const char *proname)
struct varlena * pg_detoast_datum_packed(struct varlena *datum)
fmAggrefPtr AggGetAggref(FunctionCallInfo fcinfo)
struct Aggref * fmAggrefPtr
Datum OidFunctionCall9Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
bool get_fn_expr_arg_stable(FmgrInfo *flinfo, int argnum)
void AggRegisterCallback(FunctionCallInfo fcinfo, fmExprContextCallbackFunction func, Datum arg)
Datum OidFunctionCall6Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
Datum FunctionCall6Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
Datum OidFunctionCall5Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
void(* fmExprContextCallbackFunction)(Datum arg)
Datum FunctionCall8Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
struct varlena * pg_detoast_datum_copy(struct varlena *datum)
bool CheckFunctionValidatorAccess(Oid validatorOid, Oid functionOid)
void RestoreLibraryState(char *start_address)
bytea * get_fn_opclass_options(FmgrInfo *flinfo)
bool(* needs_fmgr_hook_type)(Oid fn_oid)
Datum InputFunctionCall(FmgrInfo *flinfo, char *str, Oid typioparam, int32 typmod)
void * load_external_function(const char *filename, const char *funcname, bool signalNotFound, void **filehandle)
Datum FunctionCall2Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
void fmgr_info(Oid functionId, FmgrInfo *finfo)
Datum OidInputFunctionCall(Oid functionId, char *str, Oid typioparam, int32 typmod)
const Pg_finfo_record * fetch_finfo_record(void *filehandle, const char *funcname)
PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook
Datum DirectFunctionCall2Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2)
Datum FunctionCall5Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
Datum OidFunctionCall3Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3)
struct FunctionCallInfoBaseData * FunctionCallInfo
void fmgr_info_cxt(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt)
Datum OidFunctionCall8Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
Datum OidFunctionCall4Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
void SerializeLibraryState(Size maxsize, char *start_address)
Datum DirectFunctionCall4Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
void load_file(const char *filename, bool restricted)
Datum OidFunctionCall7Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
PGDLLIMPORT fmgr_hook_type fmgr_hook
bool InputFunctionCallSafe(FmgrInfo *flinfo, char *str, Oid typioparam, int32 typmod, fmNodePtr escontext, Datum *result)
PGDLLEXPORT void _PG_init(void)
Size EstimateLibraryStateSpace(void)
bool has_fn_opclass_options(FmgrInfo *flinfo)
int AggCheckCallContext(FunctionCallInfo fcinfo, MemoryContext *aggcontext)
Datum CallerFInfoFunctionCall2(PGFunction func, FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
Datum CallerFInfoFunctionCall1(PGFunction func, FmgrInfo *flinfo, Oid collation, Datum arg1)
Datum DirectFunctionCall6Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
char * OidOutputFunctionCall(Oid functionId, Datum val)
Datum DirectFunctionCall5Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
PGDLLIMPORT char * Dynamic_library_path
Datum OidFunctionCall1Coll(Oid functionId, Oid collation, Datum arg1)
bool AggStateIsShared(FunctionCallInfo fcinfo)
void ** find_rendezvous_variable(const char *varName)
struct varlena * pg_detoast_datum_slice(struct varlena *datum, int32 first, int32 count)
bool get_fn_expr_variadic(FmgrInfo *flinfo)
Datum DirectFunctionCall1Coll(PGFunction func, Oid collation, Datum arg1)
Datum OidReceiveFunctionCall(Oid functionId, fmStringInfo buf, Oid typioparam, int32 typmod)
Datum FunctionCall3Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3)
void(* fmgr_hook_type)(FmgrHookEventType event, FmgrInfo *flinfo, Datum *arg)
Datum DirectFunctionCall3Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3)
Datum(* PGFunction)(FunctionCallInfo fcinfo)
Datum FunctionCall7Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
Oid get_fn_expr_argtype(FmgrInfo *flinfo, int argnum)
Datum OidFunctionCall0Coll(Oid functionId, Oid collation)
void fmgr_symbol(Oid functionId, char **mod, char **fn)
Datum DirectFunctionCall9Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
bytea * SendFunctionCall(FmgrInfo *flinfo, Datum val)
Datum FunctionCall1Coll(FmgrInfo *flinfo, Oid collation, Datum arg1)
bool DirectInputFunctionCallSafe(PGFunction func, char *str, Oid typioparam, int32 typmod, fmNodePtr escontext, Datum *result)
bytea * OidSendFunctionCall(Oid functionId, Datum val)
Oid get_fn_expr_rettype(FmgrInfo *flinfo)
struct FunctionCallInfoBaseData FunctionCallInfoBaseData
char * OutputFunctionCall(FmgrInfo *flinfo, Datum val)
void fmgr_info_copy(FmgrInfo *dstinfo, FmgrInfo *srcinfo, MemoryContext destcxt)
Datum FunctionCall0Coll(FmgrInfo *flinfo, Oid collation)
Datum FunctionCall9Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
struct varlena * pg_detoast_datum(struct varlena *datum)
Datum DirectFunctionCall7Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
void * lookup_external_function(void *filehandle, const char *funcname)
StaticAssertDecl(sizeof(FMGR_ABI_EXTRA)<=sizeof(((Pg_magic_struct *) 0) ->abi_extra), "FMGR_ABI_EXTRA too long")
MemoryContext AggGetTempMemoryContext(FunctionCallInfo fcinfo)
struct StringInfoData * fmStringInfo
Datum DirectFunctionCall8Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
NullableDatum args[FLEXIBLE_ARRAY_MEMBER]
static void * fn(void *arg)