SQL functions can have arguments and results declared ANYARRAY or
Tom Lane <tgl@sss.pgh.pa.us>
SQL functions can have arguments and results declared ANYARRAY or ANYELEMENT. The effect is to postpone typechecking of the function body until runtime. Documentation is still lacking. Original patch by Joe Conway, modified to postpone type checking by Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/pg_proc.c | modified | +63 −23 |
| src/backend/executor/functions.c | modified | +54 −14 |
| src/backend/optimizer/util/clauses.c | modified | +11 −2 |
| src/backend/utils/adt/arrayfuncs.c | modified | +2 −2 |
| src/backend/utils/adt/array_userfuncs.c | modified | +3 −3 |
| src/backend/utils/fmgr/fmgr.c | modified | +12 −9 |
| src/include/catalog/pg_proc.h | modified | +4 −1 |
| src/include/fmgr.h | modified | +3 −3 |