pgsql: Avoid freeing objects during json aggregate finalization - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Avoid freeing objects during json aggregate finalization
Date
Msg-id E1nbOFK-000IMt-VY@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Robert Haas
Date:
Subject: pgsql: pg_basebackup: Fix code that thinks about LZ4 buffer size.
Next
From: Tom Lane
Date:
Subject: pgsql: Disable synchronize_seqscans in 027_stream_regress.pl.