Re: PostgreSQL 12, JIT defaults

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: PostgreSQL 12, JIT defaults
Date: 2018-10-08 15:28:05
Message-ID: CAFj8pRDzysbtMrwtp5zS0b6NDiZxbZ7d7hxeDJ1AWR2n8Du1gg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

po 8. 10. 2018 v 17:22 odesílatel Andres Freund <andres(at)anarazel(dot)de> napsal:

>
>
> On October 8, 2018 8:16:06 AM PDT, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
> >po 8. 10. 2018 v 17:10 odesílatel Andres Freund <andres(at)anarazel(dot)de>
> >napsal:
> >
> >>
> >>
> >> On October 8, 2018 8:03:56 AM PDT, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
> >wrote:
> >> >Andres Freund <andres(at)anarazel(dot)de> writes:
> >> >> Where is the jit=on coming from? Config from before it was turned
> >> >off?
> >> >
> >> >A look in guc.c shows that jit defaults to "on" whether or not JIT
> >is
> >> >enabled at compile time.
> >>
> >> I thought Pavel was talking about 11 somehow...
> >>
> >
> >I am sorry, It was not clear - I talked about master
> >
> >
> >>
> >> > This seems, at best, rather user-unfriendly.
> >> >And it's not like our conventions for other compile-option-affected
> >> >GUCs, eg the SSL ones.
> >>
> >> That was intentional, even though it perhaps should be better
> >documented.
> >> That allows a distro to build and distribute pg without llvm enabled,
> >but
> >> then have the JIT package with all the dependencies separately. The
> >pg yum
> >> packages do so.
> >>
> >
> >I don't like this solution - it is safe on production - but it can
> >breaks
> >my development environment - or we need to change setup and make
> >install
> >will not be enough.
>
> It's not clear what could be done about it. You'll run into other trouble
> if you have half installed build artifacts because you reconfigured. Make
> uninstall from before the reconfigure would uninstall it.
>

It is partially true - when I use wrong extension, then I got error
message. But JIT library kills Postgres.

I expecting permanently disabled JIT if postgres was compiled without JIT
support. Dependency on some external file doesn't looks like safe solution.

> Andres
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
>

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Konstantin Knizhnik 2018-10-08 15:28:52 Re: out-of-order XID insertion in KnownAssignedXids
Previous Message Andres Freund 2018-10-08 15:24:25 Re: out-of-order XID insertion in KnownAssignedXids