Avoid freeing objects during json aggregate finalization
Commit f4fb45d15c tried to free memory during aggregate finalization.
This cause issues, particularly when used as a window function, so stop
doing that.
Per complaint by Jaime Casanova and diagnosis by Andres Freund
Discussion: https://postgr.es/m/YkfeMNYRCGhySKyg@ahch-to
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/4eb9798879680dcc0e3ebb301cf6f925dfa69422
Modified Files
--------------
src/backend/utils/adt/json.c | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)