CALL
invoke a procedure
- Provided by: postgresql-client-12 (Version: 12.22-0ubuntu0.20.04.4)
- Source: postgresql-12
- Report a bug
invoke a procedure
CALL name ( [ argument ] [, ...] )
CALL executes a procedure.
If the procedure has any output parameters, then a result row will be returned, containing the values of those parameters.
name
argument
The user must have EXECUTE privilege on the procedure in order to be allowed to invoke it.
To call a function (not a procedure), use SELECT instead.
If CALL is executed in a transaction block, then the called procedure cannot execute transaction control statements. Transaction control statements are only allowed if CALL is executed in its own transaction.
PL/pgSQL handles output parameters in CALL commands differently; see Section 42.6.3.
CALL do_db_maintenance();
CALL conforms to the SQL standard.
CREATE PROCEDURE (CREATE_PROCEDURE(7))