1 /*------------------------------------------------------------------------- 2 * 3 * function_utils.h 4 * Utilities regarding calls to PG functions 5 * 6 * Copyright (c) Citus Data, Inc. 7 *------------------------------------------------------------------------- 8 */ 9 10 #ifndef CITUS_FUNCTION_UTILS_H 11 #define CITUS_FUNCTION_UTILS_H 12 13 #include "postgres.h" 14 15 #include "nodes/execnodes.h" 16 17 18 /* Function declaration for getting oid for the given function name */ 19 extern Oid FunctionOid(const char *schemaName, const char *functionName, 20 int argumentCount); 21 extern Oid FunctionOidExtended(const char *schemaName, const char *functionName, int 22 argumentCount, bool missingOK); 23 extern ReturnSetInfo * FunctionCallGetTupleStore1(PGFunction function, Oid functionId, 24 Datum argument); 25 26 #endif /* CITUS_FUNCTION_UTILS_H */ 27