Reset context at the tail end of JITed EEOP_AGG_PLAIN_TRANS.

Andres Freund <andres@anarazel.de>

Commit: 1307bc3d45c1a8a72c7483f2a81e72725116f007
Author: Andres Freund <andres@anarazel.de>
Date: 2018-07-23T03:31:22Z
Releases: 12.0
Reset context at the tail end of JITed EEOP_AGG_PLAIN_TRANS.

While no negative consequences are currently known, it's clearly wrong
to not reset the context in one of the branches.

Reported-By: Dmitry Dolgov
Author: Dmitry Dolgov
Discussion: https://postgr.es/m/CAGPqQf165-=+Drw3Voim7M5EjHT1zwPF9BQRjLFQzCzYnNZEiQ@mail.gmail.com
Backpatch: 11-, where JIT compilation support was added

Files

PathChange+/−
src/backend/jit/llvm/llvmjit_expr.c modified +2 −0

Discussion