]> granicus.if.org Git - postgresql/commit
Add prokind column, replacing proisagg and proiswindow
authorPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Mar 2018 13:57:38 +0000 (08:57 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Fri, 2 Mar 2018 18:48:33 +0000 (13:48 -0500)
commitfd1a421fe66173fb9b85d3fe150afde8e812cbe4
tree24c80c87337ec2d1bb46ee8463207d0cfff5ffc3
parent1733460f0205fc6d6bbe4c14911049a918c6e073
Add prokind column, replacing proisagg and proiswindow

The new column distinguishes normal functions, procedures, aggregates,
and window functions.  This replaces the existing columns proisagg and
proiswindow, and replaces the convention that procedures are indicated
by prorettype == 0.  Also change prorettype to be VOIDOID for procedures.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
40 files changed:
doc/src/sgml/catalogs.sgml
src/backend/catalog/aclchk.c
src/backend/catalog/information_schema.sql
src/backend/catalog/objectaddress.c
src/backend/catalog/pg_aggregate.c
src/backend/catalog/pg_proc.c
src/backend/catalog/system_views.sql
src/backend/commands/dropcmds.c
src/backend/commands/functioncmds.c
src/backend/commands/proclang.c
src/backend/commands/typecmds.c
src/backend/executor/functions.c
src/backend/optimizer/util/clauses.c
src/backend/parser/parse_coerce.c
src/backend/parser/parse_func.c
src/backend/utils/adt/ruleutils.c
src/backend/utils/cache/lsyscache.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl
src/bin/psql/describe.c
src/bin/psql/tab-complete.c
src/include/catalog/catversion.h
src/include/catalog/pg_class.h
src/include/catalog/pg_proc.h
src/include/catalog/pg_proc_fn.h
src/include/utils/lsyscache.h
src/pl/plperl/plperl.c
src/pl/plpgsql/src/pl_comp.c
src/pl/plpgsql/src/pl_exec.c
src/pl/plpgsql/src/pl_gram.y
src/pl/plpgsql/src/plpgsql.h
src/pl/plpython/plpy_procedure.c
src/pl/tcl/pltcl.c
src/test/regress/expected/alter_generic.out
src/test/regress/expected/create_function_3.out
src/test/regress/expected/opr_sanity.out
src/test/regress/expected/rules.out
src/test/regress/sql/alter_generic.sql
src/test/regress/sql/create_function_3.sql
src/test/regress/sql/opr_sanity.sql