PostgreSQL Source Code  git master
functions.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * functions.h
4  * Declarations for execution of SQL-language functions.
5  *
6  *
7  * Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/executor/functions.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef FUNCTIONS_H
15 #define FUNCTIONS_H
16 
17 #include "nodes/execnodes.h"
18 #include "tcop/dest.h"
19 
20 /* This struct is known only within executor/functions.c */
22 
24 
25 extern SQLFunctionParseInfoPtr prepare_sql_fn_parse_info(HeapTuple procedureTuple,
26  Node *call_expr,
27  Oid inputCollation);
28 
29 extern void sql_fn_parser_setup(struct ParseState *pstate,
30  SQLFunctionParseInfoPtr pinfo);
31 
32 extern void check_sql_fn_statements(List *queryTreeList);
33 
34 extern bool check_sql_fn_retval(List *queryTreeList,
35  Oid rettype, TupleDesc rettupdesc,
36  bool insertDroppedCols,
37  List **resultTargetList);
38 
40 
41 #endif /* FUNCTIONS_H */
SQLFunctionParseInfoPtr prepare_sql_fn_parse_info(HeapTuple procedureTuple, Node *call_expr, Oid inputCollation)
Definition: functions.c:190
struct SQLFunctionParseInfo * SQLFunctionParseInfoPtr
Definition: functions.h:21
Definition: nodes.h:529
unsigned int Oid
Definition: postgres_ext.h:31
void check_sql_fn_statements(List *queryTreeList)
Definition: functions.c:1512
DestReceiver * CreateSQLFunctionDestReceiver(void)
Definition: functions.c:2030
void sql_fn_parser_setup(struct ParseState *pstate, SQLFunctionParseInfoPtr pinfo)
Definition: functions.c:279
Datum fmgr_sql(PG_FUNCTION_ARGS)
Definition: functions.c:1007
uintptr_t Datum
Definition: postgres.h:367
bool check_sql_fn_retval(List *queryTreeList, Oid rettype, TupleDesc rettupdesc, bool insertDroppedCols, List **resultTargetList)
Definition: functions.c:1594
#define PG_FUNCTION_ARGS
Definition: fmgr.h:193
Definition: pg_list.h:50