functions.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*-------------------------------------------------------------------------
  2. *
  3. * functions.h
  4. * Declarations for execution of SQL-language functions.
  5. *
  6. *
  7. * Portions Copyright (c) 1996-2016, 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. #include "nodes/execnodes.h"
  17. #include "tcop/dest.h"
  18. /* This struct is known only within executor/functions.c */
  19. typedef struct SQLFunctionParseInfo *SQLFunctionParseInfoPtr;
  20. extern Datum fmgr_sql(PG_FUNCTION_ARGS);
  21. extern SQLFunctionParseInfoPtr prepare_sql_fn_parse_info(HeapTuple procedureTuple,
  22. Node *call_expr,
  23. Oid inputCollation);
  24. extern void sql_fn_parser_setup(struct ParseState *pstate,
  25. SQLFunctionParseInfoPtr pinfo);
  26. extern bool check_sql_fn_retval(Oid func_id, Oid rettype,
  27. List *queryTreeList,
  28. bool *modifyTargetList,
  29. JunkFilter **junkFilter);
  30. extern DestReceiver *CreateSQLFunctionDestReceiver(void);
  31. #endif /* FUNCTIONS_H */