-
- Downloads
Allow SQL-language functions to return the output of an INSERT/UPDATE/DELETE
RETURNING clause, not just a SELECT as formerly. A side effect of this patch is that when a set-returning SQL function is used in a FROM clause, performance is improved because the output is collected into a tuplestore within the function, rather than using the less efficient value-per-call mechanism.
Showing
- doc/src/sgml/xfunc.sgml 60 additions, 39 deletionsdoc/src/sgml/xfunc.sgml
- src/backend/executor/execQual.c 37 additions, 23 deletionssrc/backend/executor/execQual.c
- src/backend/executor/functions.c 473 additions, 237 deletionssrc/backend/executor/functions.c
- src/backend/tcop/dest.c 8 additions, 1 deletionsrc/backend/tcop/dest.c
- src/backend/utils/fmgr/README 4 additions, 2 deletionssrc/backend/utils/fmgr/README
- src/include/executor/functions.h 4 additions, 1 deletionsrc/include/executor/functions.h
- src/include/nodes/execnodes.h 5 additions, 3 deletionssrc/include/nodes/execnodes.h
- src/include/tcop/dest.h 3 additions, 2 deletionssrc/include/tcop/dest.h
- src/test/regress/expected/rangefuncs.out 176 additions, 0 deletionssrc/test/regress/expected/rangefuncs.out
- src/test/regress/output/create_function_1.source 1 addition, 1 deletionsrc/test/regress/output/create_function_1.source
- src/test/regress/sql/rangefuncs.sql 59 additions, 0 deletionssrc/test/regress/sql/rangefuncs.sql
Loading
Please register or sign in to comment