From 33803f67f1c4cb88733cce61207bbf2bd5b599cc Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 14 Mar 2018 11:47:21 -0400 Subject: 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 --- src/include/executor/functions.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/include/executor/functions.h') 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, -- cgit v1.2.3