pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin
2+ messages / 1 participants
[nested] [flat]

* pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin
@ 2018-07-05 00:39 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2018-07-05 00:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin
@ 2018-07-05 00:39 Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2018-07-05 00:39 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e60cfcefe635b90bab60e885be689700759a01c6

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(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-07-05 00:39 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-05 00:39 pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin Andres Freund <andres@anarazel.de>
2018-07-05 00:39 pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin Andres Freund <andres@anarazel.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox