| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state. |
| Date: | 2018-07-23 00:06:18 |
| Message-ID: | [email protected] |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2018-07-23 00:20:40 | pgsql: Make more consistent some error messages for file-related operat |
| Previous Message | Andres Freund | 2018-07-23 00:06:17 | pgsql: Fix JITed EEOP_AGG_INIT_TRANS, which missed some state. |