Re: pgsql: Support INOUT arguments in procedures

2018-03-14 Thread Erik Rijkers
On 2018-03-14 19:28, Tom Lane wrote: Peter Eisentraut writes: On 3/14/18 12:45, Erik Rijkers wrote: pl_exec.c: In function ‘exec_stmt_call’: pl_exec.c:2089:10: warning: variable ‘numargs’ set but not used [-Wunused-but-set-variable] I don't get that, and buildfarm animals of similar configu

Re: pgsql: Support INOUT arguments in procedures

2018-03-14 Thread Peter Eisentraut
On 3/14/18 14:28, Tom Lane wrote: > Peter Eisentraut writes: >> On 3/14/18 12:45, Erik Rijkers wrote: >>> pl_exec.c: In function ‘exec_stmt_call’: >>> pl_exec.c:2089:10: warning: variable ‘numargs’ set but not used >>> [-Wunused-but-set-variable] > >> I don't get that, and buildfarm animals of s

Re: pgsql: Support INOUT arguments in procedures

2018-03-14 Thread Tom Lane
Peter Eisentraut writes: > On 3/14/18 12:45, Erik Rijkers wrote: >> pl_exec.c: In function ‘exec_stmt_call’: >> pl_exec.c:2089:10: warning: variable ‘numargs’ set but not used >> [-Wunused-but-set-variable] > I don't get that, and buildfarm animals of similar configuration don't > either. Are y

Re: pgsql: Support INOUT arguments in procedures

2018-03-14 Thread Peter Eisentraut
On 3/14/18 12:45, Erik Rijkers wrote: > On 2018-03-14 17:09, Peter Eisentraut wrote: >> Support INOUT arguments in procedures > > gcc 6.3.0 (on debian stretch) mutters: > > pl_exec.c: In function ‘exec_stmt_call’: > pl_exec.c:2089:10: warning: variable ‘numargs’ set but not used > [-Wunused-but-

Re: pgsql: Support INOUT arguments in procedures

2018-03-14 Thread Erik Rijkers
On 2018-03-14 17:09, Peter Eisentraut wrote: Support INOUT arguments in procedures gcc 6.3.0 (on debian stretch) mutters: pl_exec.c: In function ‘exec_stmt_call’: pl_exec.c:2089:10: warning: variable ‘numargs’ set but not used [-Wunused-but-set-variable] int numargs; ^~~

pgsql: Support INOUT arguments in procedures

2018-03-14 Thread Peter Eisentraut
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 requ