This patch adds support for %TYPE in CREATE FUNCTION argument and return
Bruce Momjian <bruce@momjian.us>
This patch adds support for %TYPE in CREATE FUNCTION argument and return types. This version has an elog() to remind the user the type resolution is not dynamic. Ian Lance Taylor
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_function.sgml | modified | +13 −5 |
| src/backend/parser/analyze.c | modified | +117 −1 |
| src/backend/parser/gram.y | modified | +17 −5 |
| src/backend/parser/parse_expr.c | modified | +2 −1 |
| src/include/nodes/parsenodes.h | modified | +2 −1 |
| src/test/regress/input/create_function_2.source | modified | +6 −0 |
| src/test/regress/input/misc.source | modified | +1 −0 |
| src/test/regress/output/create_function_2.source | modified | +6 −0 |
| src/test/regress/output/misc.source | modified | +6 −0 |