pgsql: Avoid freeing objects during json aggregate finalization

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема pgsql: Avoid freeing objects during json aggregate finalization
Дата
Msg-id E1nbOFK-000IMt-VY@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: pg_basebackup: Fix code that thinks about LZ4 buffer size.
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Disable synchronize_seqscans in 027_stream_regress.pl.