Fix things so that array_agg_finalfn does not modify or free its input
ArrayBuildState, per trouble report from Merlin Moncure. By adopting this fix, we are essentially deciding that aggregate final-functions should not modify their inputs ever. Adjust documentation and comments to match that conclusion.
Showing
- doc/src/sgml/xaggr.sgml 7 additions, 3 deletionsdoc/src/sgml/xaggr.sgml
- src/backend/executor/nodeWindowAgg.c 3 additions, 4 deletionssrc/backend/executor/nodeWindowAgg.c
- src/backend/utils/adt/array_userfuncs.c 6 additions, 3 deletionssrc/backend/utils/adt/array_userfuncs.c
- src/backend/utils/adt/arrayfuncs.c 15 additions, 3 deletionssrc/backend/utils/adt/arrayfuncs.c
Loading
Please register or sign in to comment