CALL(7)
π CALL(7) β like, the manual page for CALL, bestie
okay so this is PostgreSQL 13.23 documentation, section 7, and today's main character is CALL. she's the one who actually runs your procedures, and honestly? iconic.
β¨ NAME β¨
CALL β invoke a procedure π
β¨ SYNOPSIS β¨
CALL name ( [ argument ] [, ...] )
that's it. that's the whole vibe. periodt. π
β¨ DESCRIPTION β¨
so CALL executes a procedure. that's literally her job, no cap.
and here's the cute part: if the procedure has any output parameters, then a result row will be returned, containing the values of those parameters. so you don't just get the side effects, you get the receipts too π§Ύβ¨
β¨ PARAMETERS β¨
nameβ the name of the procedure, and yes she can be optionally schema-qualified π¦argumentβ an input argument for the procedure call. See Section 4.3 for the full details on function and procedure call syntax, including use of named parameters. iykyk β go read that one, it's giving essential lore πΈ
β¨ NOTES β¨
okay, listen up, because there are rules π
- the user must have
EXECUTEprivilege on the procedure in order to be allowed to invoke it. no privilege, no entry. it's giving velvet rope π«π - to call a function (not a procedure), use
SELECTinstead. different girl, different door. don't mix them up bestie π - if
CALLis executed in a transaction block, then the called procedure cannot execute transaction control statements. transaction control statements are only allowed ifCALLis executed in its own transaction. that's a real constraint, fr fr β plan around it π - PL/pgSQL handles output parameters in
CALLcommands differently; see Section 42.6.3. so like, don't assume the generic behaviour carries over, check that section π«Ά
β¨ EXAMPLES β¨
CALL do_db_maintenance();
clean. simple. she ate and left no crumbs π₯
β¨ COMPATIBILITY β¨
CALL conforms to the SQL standard. genuine queen behaviour, standard-approved πβ
β¨ SEE ALSO β¨
CREATE PROCEDURE(CREATE_PROCEDURE(7)) β you gotta make her before you can call her, obviously π
and that's the whole page, bestie! shoutout to PostgreSQL 13.23, dated 2025 β this manual page said see you next time, mwah πππ¦
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- opensuse-leap 16.0: postgresql13 13.23-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms