postgresql/src/include/commands
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
..
alter.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
async.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
cluster.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
collationcmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
comment.h Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
conversioncmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
copy.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
createas.h Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
dbcommands.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
dbcommands_xlog.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
defrem.h SQL procedures 2017-11-30 11:03:20 -05:00
discard.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
event_trigger.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
explain.h Make ExplainOpenGroup and ExplainCloseGroup public. 2017-09-18 16:01:16 -04:00
extension.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
lockcmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
matview.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
policy.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
portalcmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
prepare.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
proclang.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
progress.h Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
publicationcmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
schemacmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
seclabel.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
sequence.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
subscriptioncmds.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
tablecmds.h Allow a partitioned table to have a default partition. 2017-09-08 17:28:04 -04:00
tablespace.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
trigger.h Fix SQL-spec incompatibilities in new transition table feature. 2017-09-16 13:20:36 -04:00
typecmds.h Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
user.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
vacuum.h Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
variable.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
view.h Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00