CALL — invoke a procedure
| Use Case | Command | Description |
|---|---|---|
| Invoke a procedure | CALL procedure_name(args); |
Execute a procedure in PostgreSQL. |
| Call procedure with named arguments | CALL procedure_name(param => value); |
Use named parameter syntax for clarity. |
| Call procedure with OUT parameters | CALL procedure_name(NULL, ...); |
Supply NULL for OUT parameters as they are not evaluated. |
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.
nameThe name (optionally schema-qualified) of the procedure.
argumentAn argument expression for the procedure call.
name => value. This works the same as in ordinary function calls; see Section 4.3 for details.EXECUTE privilege on the procedure in order to be allowed to invoke it.SELECT instead.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.CALL commands differently; see Section 43.6.3.CALL do_db_maintenance();
CALL conforms to the SQL standard, except for the handling of output parameters. The standard says that users should write variables to receive the values of output parameters.
PostgreSQL 14.23 2026 CALL(7)
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 09:43 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)