Fix things so that array_agg_finalfn does not modify or free its input
commit5a64526d88446db9abfbe15e9e7170dd429da73b
authortgl <tgl>
Sat, 20 Jun 2009 18:45:28 +0000 (20 18:45 +0000)
committertgl <tgl>
Sat, 20 Jun 2009 18:45:28 +0000 (20 18:45 +0000)
tree73c89f85495fe560226786219eb7c22fadf24a9f
parent476987b062f077293107211ad700f18ab8799291
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.
doc/src/sgml/xaggr.sgml
src/backend/executor/nodeWindowAgg.c
src/backend/utils/adt/array_userfuncs.c
src/backend/utils/adt/arrayfuncs.c