1
/*-------------------------------------------------------------------------
4
* Declarations for execution of SQL-language functions.
7
* Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
8
* Portions Copyright (c) 1994, Regents of the University of California
10
* src/include/executor/functions.h
12
*-------------------------------------------------------------------------
17
#include "nodes/execnodes.h"
18
#include "tcop/dest.h"
20
/* This struct is known only within executor/functions.c */
21
typedef struct SQLFunctionParseInfo *SQLFunctionParseInfoPtr;
23
extern Datum fmgr_sql(PG_FUNCTION_ARGS);
25
extern SQLFunctionParseInfoPtr prepare_sql_fn_parse_info(HeapTuple procedureTuple,
29
extern void sql_fn_parser_setup(struct ParseState *pstate,
30
SQLFunctionParseInfoPtr pinfo);
32
extern bool check_sql_fn_retval(Oid func_id, Oid rettype,
34
bool *modifyTargetList,
35
JunkFilter **junkFilter);
37
extern DestReceiver *CreateSQLFunctionDestReceiver(void);
39
#endif /* FUNCTIONS_H */