You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This adds a new object type "procedure" that is similar to a functionbut does not have a return type and is invoked by the new CALL statementinstead of SELECT or similar. This implementation is aligned with theSQL standard and compatible with or similar to other SQL implementations.This commit adds new commands CALL, CREATE/ALTER/DROP PROCEDURE, as wellas ALTER/DROP ROUTINE that can refer to either a function or aprocedure (or an aggregate function, as an extension to SQL). There isalso support for procedures in various utility commands such as COMMENTand GRANT, as well as support in pg_dump and psql. Support for definingprocedures is available in all the languages supplied by the coredistribution.While this commit is mainly syntax sugar around existing functionality,future features will rely on having procedures as a separate objecttype.Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>