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 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 464 #define PG_MODULE_MAGIC_DATA \ 466 sizeof(Pg_magic_struct), \ 467 PG_VERSION_NUM / 100, \ 480 #define PG_MAGIC_FUNCTION_NAME Pg_magic_func 481 #define PG_MAGIC_FUNCTION_NAME_STRING "Pg_magic_func" 483 #define PG_MODULE_MAGIC \ 484 extern PGDLLEXPORT const Pg_magic_struct *PG_MAGIC_FUNCTION_NAME(void); \ 485 const Pg_magic_struct * \ 486 PG_MAGIC_FUNCTION_NAME(void) \ 488 static const Pg_magic_struct Pg_magic_data = PG_MODULE_MAGIC_DATA; \ 489 return &Pg_magic_data; \ 491 extern int no_such_variable 626 #define DirectFunctionCall1(func, arg1) \ 627 DirectFunctionCall1Coll(func, InvalidOid, arg1) 628 #define DirectFunctionCall2(func, arg1, arg2) \ 629 DirectFunctionCall2Coll(func, InvalidOid, arg1, arg2) 630 #define DirectFunctionCall3(func, arg1, arg2, arg3) \ 631 DirectFunctionCall3Coll(func, InvalidOid, arg1, arg2, arg3) 632 #define DirectFunctionCall4(func, arg1, arg2, arg3, arg4) \ 633 DirectFunctionCall4Coll(func, InvalidOid, arg1, arg2, arg3, arg4) 634 #define DirectFunctionCall5(func, arg1, arg2, arg3, arg4, arg5) \ 635 DirectFunctionCall5Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5) 636 #define DirectFunctionCall6(func, arg1, arg2, arg3, arg4, arg5, arg6) \ 637 DirectFunctionCall6Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6) 638 #define DirectFunctionCall7(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ 639 DirectFunctionCall7Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 640 #define DirectFunctionCall8(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ 641 DirectFunctionCall8Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 642 #define DirectFunctionCall9(func, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \ 643 DirectFunctionCall9Coll(func, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) 644 #define FunctionCall1(flinfo, arg1) \ 645 FunctionCall1Coll(flinfo, InvalidOid, arg1) 646 #define FunctionCall2(flinfo, arg1, arg2) \ 647 FunctionCall2Coll(flinfo, InvalidOid, arg1, arg2) 648 #define FunctionCall3(flinfo, arg1, arg2, arg3) \ 649 FunctionCall3Coll(flinfo, InvalidOid, arg1, arg2, arg3) 650 #define FunctionCall4(flinfo, arg1, arg2, arg3, arg4) \ 651 FunctionCall4Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4) 652 #define FunctionCall5(flinfo, arg1, arg2, arg3, arg4, arg5) \ 653 FunctionCall5Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5) 654 #define FunctionCall6(flinfo, arg1, arg2, arg3, arg4, arg5, arg6) \ 655 FunctionCall6Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6) 656 #define FunctionCall7(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ 657 FunctionCall7Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 658 #define FunctionCall8(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ 659 FunctionCall8Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 660 #define FunctionCall9(flinfo, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \ 661 FunctionCall9Coll(flinfo, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) 662 #define OidFunctionCall0(functionId) \ 663 OidFunctionCall0Coll(functionId, InvalidOid) 664 #define OidFunctionCall1(functionId, arg1) \ 665 OidFunctionCall1Coll(functionId, InvalidOid, arg1) 666 #define OidFunctionCall2(functionId, arg1, arg2) \ 667 OidFunctionCall2Coll(functionId, InvalidOid, arg1, arg2) 668 #define OidFunctionCall3(functionId, arg1, arg2, arg3) \ 669 OidFunctionCall3Coll(functionId, InvalidOid, arg1, arg2, arg3) 670 #define OidFunctionCall4(functionId, arg1, arg2, arg3, arg4) \ 671 OidFunctionCall4Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4) 672 #define OidFunctionCall5(functionId, arg1, arg2, arg3, arg4, arg5) \ 673 OidFunctionCall5Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5) 674 #define OidFunctionCall6(functionId, arg1, arg2, arg3, arg4, arg5, arg6) \ 675 OidFunctionCall6Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6) 676 #define OidFunctionCall7(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7) \ 677 OidFunctionCall7Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7) 678 #define OidFunctionCall8(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) \ 679 OidFunctionCall8Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8) 680 #define OidFunctionCall9(functionId, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) \ 681 OidFunctionCall9Coll(functionId, InvalidOid, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9) 722 bool signalNotFound,
void **filehandle);
738 #define AGG_CONTEXT_AGGREGATE 1 739 #define AGG_CONTEXT_WINDOW 2 743 extern fmAggrefPtr
AggGetAggref(FunctionCallInfo fcinfo);
774 #define FmgrHookIsNeeded(fn_oid) \ 775 (!needs_fmgr_hook ? false : (*needs_fmgr_hook)(fn_oid)) Datum CallerFInfoFunctionCall2(PGFunction func, FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
int AggCheckCallContext(FunctionCallInfo fcinfo, MemoryContext *aggcontext)
fmAggrefPtr AggGetAggref(FunctionCallInfo fcinfo)
void(* fmExprContextCallbackFunction)(Datum arg)
Datum(* PGFunction)(FunctionCallInfo fcinfo)
Oid get_fn_expr_rettype(FmgrInfo *flinfo)
bool has_fn_opclass_options(FmgrInfo *flinfo)
PGDLLIMPORT fmgr_hook_type fmgr_hook
Datum OidFunctionCall9Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8, Datum arg9)
struct StringInfoData * fmStringInfo
bool get_call_expr_arg_stable(fmNodePtr expr, int argnum)
char * OutputFunctionCall(FmgrInfo *flinfo, Datum val)
Oid get_call_expr_argtype(fmNodePtr expr, int argnum)
Datum FunctionCall2Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2)
void(* fmgr_hook_type)(FmgrHookEventType event, FmgrInfo *flinfo, Datum *arg)
Datum DirectFunctionCall8Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
Datum CallerFInfoFunctionCall1(PGFunction func, FmgrInfo *flinfo, Oid collation, Datum arg1)
Datum ReceiveFunctionCall(FmgrInfo *flinfo, fmStringInfo buf, Oid typioparam, int32 typmod)
Datum FunctionCall4Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
Datum DirectFunctionCall4Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
void set_fn_opclass_options(FmgrInfo *flinfo, bytea *options)
#define FLEXIBLE_ARRAY_MEMBER
char * OidOutputFunctionCall(Oid functionId, Datum val)
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 OidFunctionCall3Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3)
Datum DirectFunctionCall7Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
struct varlena * pg_detoast_datum_packed(struct varlena *datum)
Size EstimateLibraryStateSpace(void)
bool get_fn_expr_variadic(FmgrInfo *flinfo)
bool AggStateIsShared(FunctionCallInfo fcinfo)
struct Aggref * fmAggrefPtr
Oid get_fn_expr_argtype(FmgrInfo *flinfo, int argnum)
Datum FunctionCall5Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
bytea * SendFunctionCall(FmgrInfo *flinfo, Datum val)
const Pg_finfo_record * fetch_finfo_record(void *filehandle, const char *funcname)
void fmgr_info_copy(FmgrInfo *dstinfo, FmgrInfo *srcinfo, MemoryContext destcxt)
void fmgr_info_cxt(Oid functionId, FmgrInfo *finfo, MemoryContext mcxt)
MemoryContext AggGetTempMemoryContext(FunctionCallInfo fcinfo)
bool(* needs_fmgr_hook_type)(Oid fn_oid)
Datum DirectFunctionCall2Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2)
void * lookup_external_function(void *filehandle, const char *funcname)
Datum OidFunctionCall1Coll(Oid functionId, Oid collation, Datum arg1)
bool CheckFunctionValidatorAccess(Oid validatorOid, Oid functionOid)
Datum OidFunctionCall6Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
PGDLLIMPORT needs_fmgr_hook_type needs_fmgr_hook
void * load_external_function(const char *filename, const char *funcname, bool signalNotFound, void **filehandle)
Datum FunctionCall3Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3)
Datum DirectFunctionCall5Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
Datum OidFunctionCall2Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2)
Datum InputFunctionCall(FmgrInfo *flinfo, char *str, Oid typioparam, int32 typmod)
struct FunctionCallInfoBaseData * FunctionCallInfo
void fmgr_info(Oid functionId, FmgrInfo *finfo)
Datum OidReceiveFunctionCall(Oid functionId, fmStringInfo buf, Oid typioparam, int32 typmod)
void clear_external_function_hash(void *filehandle)
void load_file(const char *filename, bool restricted)
static void * fn(void *arg)
void AggRegisterCallback(FunctionCallInfo fcinfo, fmExprContextCallbackFunction func, Datum arg)
void ** find_rendezvous_variable(const char *varName)
Datum DirectFunctionCall6Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6)
struct varlena * pg_detoast_datum_copy(struct varlena *datum)
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)
Datum OidFunctionCall4Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4)
Datum FunctionCall8Coll(FmgrInfo *flinfo, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7, Datum arg8)
Datum FunctionCall1Coll(FmgrInfo *flinfo, Oid collation, Datum arg1)
bytea * get_fn_opclass_options(FmgrInfo *flinfo)
Datum OidInputFunctionCall(Oid functionId, char *str, Oid typioparam, int32 typmod)
void RestoreLibraryState(char *start_address)
void SerializeLibraryState(Size maxsize, char *start_address)
bytea * OidSendFunctionCall(Oid functionId, Datum val)
struct FunctionCallInfoBaseData FunctionCallInfoBaseData
bool get_fn_expr_arg_stable(FmgrInfo *flinfo, int argnum)
Datum FunctionCall0Coll(FmgrInfo *flinfo, Oid collation)
Datum OidFunctionCall0Coll(Oid functionId, Oid collation)
Datum OidFunctionCall5Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5)
Datum DirectFunctionCall3Coll(PGFunction func, Oid collation, Datum arg1, Datum arg2, Datum arg3)
Datum DirectFunctionCall1Coll(PGFunction func, Oid collation, Datum arg1)
Oid fmgr_internal_function(const char *proname)
struct varlena * pg_detoast_datum(struct varlena *datum)
struct varlena * pg_detoast_datum_slice(struct varlena *datum, int32 first, int32 count)
Datum OidFunctionCall7Coll(Oid functionId, Oid collation, Datum arg1, Datum arg2, Datum arg3, Datum arg4, Datum arg5, Datum arg6, Datum arg7)
char * Dynamic_library_path
Datum OidFunctionCall8Coll(Oid functionId, 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)