]> granicus.if.org Git - postgresql/commit
Reset context at the tail end of JITed EEOP_AGG_PLAIN_TRANS.
authorAndres Freund <andres@anarazel.de>
Mon, 23 Jul 2018 03:31:22 +0000 (20:31 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 23 Jul 2018 03:34:57 +0000 (20:34 -0700)
commit0171ad9308ac232d5934d548a2adc898b794c5e0
tree069d46c619d8ade6aaf0e4d2a4da470bfb8428dc
parenta9a0a4d3f88b87564533b87af64d3282ca417dc6
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
src/backend/jit/llvm/llvmjit_expr.c