4 CALL — invoke a procedure
8 CALL name ( [ argument ] [, ...] )
12 CALL executes a procedure.
14 If the procedure has any output parameters, then a result row will be
15 returned, containing the values of those parameters.
20 The name (optionally schema-qualified) of the procedure.
23 An argument expression for the procedure call.
25 Arguments can include parameter names, using the syntax name =>
26 value. This works the same as in ordinary function calls; see
27 Section 4.3 for details.
29 Arguments must be supplied for all procedure parameters that
30 lack defaults, including OUT parameters. However, arguments
31 matching OUT parameters are not evaluated, so it's customary to
32 just write NULL for them. (Writing something else for an OUT
33 parameter might cause compatibility problems with future
38 The user must have EXECUTE privilege on the procedure in order to be
41 To call a function (not a procedure), use SELECT instead.
43 If CALL is executed in a transaction block, then the called procedure
44 cannot execute transaction control statements. Transaction control
45 statements are only allowed if CALL is executed in its own transaction.
47 PL/pgSQL handles output parameters in CALL commands differently; see
52 CALL do_db_maintenance();
56 CALL conforms to the SQL standard, except for the handling of output
57 parameters. The standard says that users should write variables to
58 receive the values of output parameters.