postgresql/src/backend/tcop
Peter Eisentraut e4128ee767 SQL procedures
This adds a new object type "procedure" that is similar to a function
but does not have a return type and is invoked by the new CALL statement
instead of SELECT or similar.  This implementation is aligned with the
SQL standard and compatible with or similar to other SQL implementations.

This commit adds new commands CALL, CREATE/ALTER/DROP PROCEDURE, as well
as ALTER/DROP ROUTINE that can refer to either a function or a
procedure (or an aggregate function, as an extension to SQL).  There is
also support for procedures in various utility commands such as COMMENT
and GRANT, as well as support in pg_dump and psql.  Support for defining
procedures is available in all the languages supplied by the core
distribution.

While this commit is mainly syntax sugar around existing functionality,
future features will rely on having procedures as a separate object
type.

Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
2017-11-30 11:03:20 -05:00
..
Makefile Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
dest.c Add a new DestReceiver for printing tuples without catalog access. 2017-01-24 16:53:56 -05:00
fastpath.c Replace remaining uses of pq_sendint with pq_sendint{8,16,32}. 2017-10-11 21:00:46 -07:00
postgres.c Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
pquery.c Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
utility.c SQL procedures 2017-11-30 11:03:20 -05:00