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: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.
Date: Mon, 23 Jul 2018 00:06:18 +0000
Message-ID: <E1fhOMk-00050J-8q@gemulon.postgresql.org> (raw)

Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.

The JIT compiled implementation missed maintaining
AggState->{current_set,curaggcontext}. That could lead to trouble
because the transition value could be allocated in the wrong context.

Reported-By: Rushabh Lathia
Diagnosed-By: Dmitry Dolgov
Author: Dmitry Dolgov, with minor changes by me
Discussion: https://postgr.es/m/CAGPqQf165-=+Drw3Voim7M5EjHT1zwPF9BQRjLFQzCzYnNZEiQ@mail.gmail.com
Backpatch: 11-, where JIT compilation support was added

Branch
------
REL_11_STABLE

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

Modified Files
--------------
src/backend/jit/llvm/llvmjit_expr.c | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)



view thread (2+ messages)

Message-ID: <E1fhOMk-00050J-8q@gemulon.postgresql.org>
Permalink:  ../E1fhOMk-00050J-8q@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1fhOMk-00050J-8q@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: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.
  In-Reply-To: <E1fhOMk-00050J-8q@gemulon.postgresql.org>
  References: <E1fhOMk-00050J-8q@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