aboutsummaryrefslogtreecommitdiff
path: root/src/include/executor/functions.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-03-14 11:47:21 -0400
committerPeter Eisentraut <peter_e@gmx.net>2018-03-14 12:07:28 -0400
commit33803f67f1c4cb88733cce61207bbf2bd5b599cc (patch)
tree9ec962aebf50eb4b16a585f83f490d9a5aa6f677 /src/include/executor/functions.h
parent484a4a08abe316212d67d84bb8705b06e44f862d (diff)
downloadpostgresql-33803f67f1c4cb88733cce61207bbf2bd5b599cc.tar.gz
postgresql-33803f67f1c4cb88733cce61207bbf2bd5b599cc.zip
Support INOUT arguments in procedures
In a top-level CALL, the values of INOUT arguments will be returned as a result row. In PL/pgSQL, the values are assigned back to the input arguments. In other languages, the same convention as for return a record from a function is used. That does not require any code changes in the PL implementations. Reviewed-by: Pavel Stehule <pavel.stehule@gmail.com>
Diffstat (limited to 'src/include/executor/functions.h')
-rw-r--r--src/include/executor/functions.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/executor/functions.h b/src/include/executor/functions.h
index e7454ee7906..a309809ba84 100644
--- a/src/include/executor/functions.h
+++ b/src/include/executor/functions.h
@@ -29,6 +29,8 @@ extern SQLFunctionParseInfoPtr prepare_sql_fn_parse_info(HeapTuple procedureTupl
extern void sql_fn_parser_setup(struct ParseState *pstate,
SQLFunctionParseInfoPtr pinfo);
+extern void check_sql_fn_statements(List *queryTreeList);
+
extern bool check_sql_fn_retval(Oid func_id, Oid rettype,
List *queryTreeList,
bool *modifyTargetList,