Movatterモバイル変換


[0]ホーム

URL:


September 25, 2025: PostgreSQL 18 Released!
Supported Versions:Current (18) /17 /16 /15 /14 /13
Development Versions:devel
Unsupported versions:12 /11
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for thecurrent version, or one of the other supported versions listed above instead.
CALL
Prev UpSQL CommandsHome Next

CALL

CALL — invoke a procedure

Synopsis

CALLname ( [argument ] [, ...] )

Description

CALL executes a procedure.

If the procedure has any output parameters, then a result row will be returned, containing the values of those parameters.

Parameters

name

The name (optionally schema-qualified) of the procedure.

argument

An input argument for the procedure call. SeeSection 4.3 for the full details on function and procedure call syntax, including use of named parameters.

Notes

The user must haveEXECUTE privilege on the procedure in order to be allowed to invoke it.

To call a function (not a procedure), useSELECT instead.

IfCALL is executed in a transaction block, then the called procedure cannot execute transaction control statements. Transaction control statements are only allowed ifCALL is executed in its own transaction.

PL/pgSQL handles output parameters inCALL commands differently; seeSection 43.6.3.

Examples

CALL do_db_maintenance();

Compatibility

CALL conforms to the SQL standard.


Prev Up Next
BEGIN Home CHECKPOINT

[8]ページ先頭

©2009-2025 Movatter.jp