pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin
Date: Thu, 05 Jul 2018 00:39:50 +0000
Message-ID: <E1fasJK-0006YS-6g@gemulon.postgresql.org> (raw)

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



view thread (2+ messages)

Message-ID: <E1fasJK-0006YS-6g@gemulon.postgresql.org>
Permalink:  ../E1fasJK-0006YS-6g@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fasJK-0006YS-6g@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Use context with correct lifetime in hypothetical_dense_rank_fin
  In-Reply-To: <E1fasJK-0006YS-6g@gemulon.postgresql.org>
  References: <E1fasJK-0006YS-6g@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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