OSDN Git Service

Fix things so that array_agg_finalfn does not modify or free its input
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Jun 2009 18:45:28 +0000 (18:45 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 20 Jun 2009 18:45:28 +0000 (18:45 +0000)
commit82480e28f5744582dba78320824e3569ed76e74a
treef3d6aea7799b512660fa16e3a41d4187125d20f7
parent87698ffa8e667f99a224420db97aa0306d71b3f4
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