pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state. - Mailing list pgsql-committers

From Andres Freund
Subject pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.
Date
Msg-id E1fhOMk-00050J-8q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(+)


pgsql-committers by date:

Previous
From: Andres Freund
Date:
Subject: pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state.
Next
From: Michael Paquier
Date:
Subject: pgsql: Make more consistent some error messages for file-relatedoperat