Re: LLVM jit and matview

Dmitry Dolgov <9erthalion6@gmail.com>

From: Dmitry Dolgov <9erthalion6@gmail.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Andres Freund <andres@anarazel.de>, PostgreSQL-development <pgsql-hackers@postgresql.org>, PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2018-07-25T12:59:20Z
Lists: pgsql-bugs, pgsql-hackers
> On Wed, 25 Jul 2018 at 07:49, Michael Paquier <michael@paquier.xyz> wrote:
>
> On Tue, Jul 24, 2018 at 07:49:56PM -0700, Andres Freund wrote:
> > FWIW, this doesn't crash for me, using a trunk checkout for LLVM. I'll
> > try older ones, as soon as they finish rebuilding. But perhaps you could
> > re-verify that this still is an issue on recent PG checkouts? And which
> > version of LLVM are you guys using?
>
> One of your recent fixes has visibly taken take of the issue (I am too
> lazy to check which one).  I am using llvm 6.0 with Debian SID as far as
> I know, configure links to stuff in /usr/lib/llvm-6.0/.

Looks like I still can reproduce it on the current head 167075be3ab. I was using
LLVM 5.0 package, but will try reproduce on the LLVM master branch as soon
as compilation will be finished (apparently, I need to rebuild it with
LLVM_USE_PERF, otherwise Postgres complains about undefined symbol:
LLVMCreatePerfJITEventListener).


Commits

  1. LLVMJIT: Release JIT context after running ExprContext shutdown callbacks.