Fix things so that array_agg_finalfn does not modify or free its input

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 82480e28f5744582dba78320824e3569ed76e74a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-06-20T18:45:28Z
Releases: 8.4.0
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.

Files