postgresql/src/backend/utils
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
..
adt SQL procedures 2017-11-30 11:03:20 -05:00
cache SQL procedures 2017-11-30 11:03:20 -05:00
error Don't call pgwin32_message_to_UTF16() without CurrentMemoryContext. 2017-11-12 13:03:15 -08:00
fmgr Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
hash Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
init Back out the session_start and session_end hooks feature. 2017-11-16 11:35:02 -05:00
mb Don't call pgwin32_message_to_UTF16() without CurrentMemoryContext. 2017-11-12 13:03:15 -08:00
misc Fix pg_control_checkpoint from commit 4b0d28de06 2017-11-21 08:00:54 +11:00
mmgr Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
resowner Remove unnecessary PG_TRY overhead for CurrentResourceOwner changes. 2017-10-11 17:44:09 -04:00
sort Update typedefs.list and re-run pgindent 2017-11-29 09:24:24 -05:00
time Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
.gitignore Generate fmgr prototypes automatically 2017-01-17 14:06:07 -05:00
Gen_dummy_probes.pl Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_dummy_probes.sed Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
Gen_fmgrtab.pl Replace binary search in fmgr_isbuiltin with a lookup array. 2017-10-04 00:22:38 -07:00
Makefile Replace binary search in fmgr_isbuiltin with a lookup array. 2017-10-04 00:22:38 -07:00
errcodes.txt Revert to 9.6 treatment of ALTER TYPE enumtype ADD VALUE. 2017-09-27 16:14:43 -04:00
generate-errcodes.pl Clean up Perl code according to perlcritic 2017-03-27 08:18:22 -04:00
probes.d Rename dtrace probes for ongoing xlog -> wal conversion. 2017-02-09 16:40:19 -05:00