pgsql: Use context with correct lifetime inhypothetical_dense_rank_fin - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Use context with correct lifetime inhypothetical_dense_rank_fin
Date
Msg-id E1fasJI-0006Y6-RX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Use context with correct lifetime in hypothetical_dense_rank_final.

The query lifetime expression context created in
hypothetical_dense_rank_final() was buggily allocated in the calling
memory context. I (Andres) broke that in bf6c614a2f2.

Reported-By: Rajkumar Raghuwanshi
Author: Amit Langote
Discussion:  https://postgr.es/m/CAKcux6kmzWmur5HhA_aU6gYVFu0RLQdgJJ+aC9SLdcOvBSrpfA@mail.gmail.com
Backpatch: 11-

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/249126e761e13c4d8e7519569d483eaeca7dac25

Modified Files
--------------
src/backend/utils/adt/orderedsetaggs.c   | 10 +++++++++-
src/test/regress/expected/aggregates.out |  9 +++++++++
src/test/regress/sql/aggregates.sql      |  3 +++
3 files changed, 21 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Check for interrupts inside the nbtree page deletion code.
Next
From: Andres Freund
Date:
Subject: pgsql: Use context with correct lifetime inhypothetical_dense_rank_fin