Stored procedures
CREATE PROCEDURE and CALL, with transaction control inside procedures and OUT parameters. Introduced in PostgreSQL 11.
Versions
- PostgreSQL 18 · worked-on · improved · moderate
- PostgreSQL 17 · worked-on · improved · moderate
Threads
- [PATCH] plpgsql: detoast a returned record before keeping it in a non-atomic context
- [PATCH] Fix leak when a plpgsql exception block catches an error from CALL
- Bringing non-atomic operation to a PL that hasn't had it
- BUG #18656: "STABLE" function sometimes does not see changes
- retrieving results of procedures with OUT params
- BUG #18574: procedure cache does not invalidate when output parameter type mismatch
- Function and Procedure with same signature?
- BUG #18463: Possible bug in stored procedures with polymorphic OUT parameters
- Unexpected results from CALL and AUTOCOMMIT=off
- A server crash with a SQL procedure returning a user-defined type on 14.8
- BUG #18131: PL/pgSQL: regclass procedure parameter wrongly memoized(?)
- BUG #18116: This is definitiv a BUG in INOUT parameter in stored procedures in Postgres 12.16
- BUG #18059: Unexpected error 25001 in stored procedure
- BUG #17837: The potential risks associated with executing "commit" in a procedure.
- BUG #17199: Calling stored procedure with stable function as argument results in wrong result
- Is SPI + Procedures (with COMMIT) inside a bgworker broken?
- psql crash when running a procedure with an inout parameter and a commit
- Assertion failure in HEAD and 13 after calling COMMIT in a stored proc
- CALL versus procedures with output-only arguments
- BUG #17050: cursor with for update + commit in loop
- BUG #17035: assert after commit
- BUG #15990: PROCEDURE throws "SQL Error [XX000]: ERROR: no known snapshots" with PostGIS geometries
- regarding stored procedure
- patch: reduce overhead of execution of CALL statement in no atomic mode from PL/pgSQL
- pgsql: Fix memory leak in plpgsql's CALL processing.
- Make procedure OUT parameters work with JDBC
- plan cache doesn't clean plans with references to dropped procedures
- broken logic of simple_eval_resowner after CALL and COMMIT inside procedure
- Support for OUT parameters in procedures
- calling procedures is slow and consumes extra much memory against calling function
- Procedures
- BUG #16547: ECPG can't CALL the procedure which has INOUT parameter
- Problem with accessing OTAST data in stored procedures
- Can the OUT parameter be enabled in stored procedure?
- Cannot commit or rollback in “security definer” PL/pgSQL proc
- PL/pgSQL — "commit" illegal in the executable section of a block statement that has an exception section
- Support for CALL statement in ecpg
- Procedure support improvements
- BUG #15703: Segfault in cancelled CALL-Statements
- Procedures with out parameter(Postgresql 11)
- SPI Interface to Call Procedure with Transaction Control Statements?
- repeated procedure call error
- bugfix: BUG #15477: Procedure call with named inout refcursor parameter - "invalid input syntax for type boolean"
- BUG #15477: Procedure call with named inout refcursor parameter - "invalid input syntax for type boolean" error
- CREATE PROCEDURE Documentation
- v11: RETURN syntax for procedure
- transction_timestamp() inside of procedures
- Procedure calls are not tracked in pg_stat_user_functions / track_functions
- v11 transaction semantics inside procedures
- Stored procedures and out parameters
- Memory leak with CALL to Procedure with COMMIT.
- 11 beta 3 / ROLLBACK TO SAVEPOINT regression in PLPGSQL
- Fix hints on CREATE PROCEDURE errors
- xact_start meaning when dealing with procedures?
- xact_start meaning when dealing with procedures?
- assert in nested SQL procedure call in current HEAD
- Failed assertion due to procedure created with SECURITY DEFINER option
- We still claim "cannot begin/end transactions in PL/pgSQL"
- Procedure additions to ParseFuncOrColumn are inadequate
- Odd procedure resolution
- missing support of named convention for procedures
- some last patches breaks plan cache
- CALL optional in PL/pgSQL
- committing inside cursor loop
- PL/pgSQL nested CALL with transactions
- pgsql: Avoid premature free of pass-by-reference CALL arguments.
- INOUT parameters in procedures
- SQL procedures
- support parameters in CALL
- CALL stmt, ERROR: unrecognized node type: 113 bug
- Transaction control in procedures
- portal pinning
- procedures and plpgsql PERFORM
- incorrect error message, while dropping PROCEDURE
- server crash with CallStmt