JIT works only partially with meson build?
JIT works only partially with meson build?
От:
Yugo Nagata <nagata@sraoss.co.jp>
Дата:
Hi, While building PostgreSQL 17 on Windows, I noticed bitcode files (.bc) are not generated with meson. Does this means that "inlining" of JIT doesn't work when PostgreSQL is build with meson? If so, is it better to describe that in the meson build and JIT sections in the documentation so that users and packagers would except JIT doesn't work in the same way when built with meson and autoconf/make? Regards, Yugo Nagata -- Yugo Nagata
Re: JIT works only partially with meson build?
От:
David Rowley <dgrowleyml@gmail.com>
Дата:
On Mon, 26 May 2025 at 18:08, Yugo Nagata wrote: > While building PostgreSQL 17 on Windows, I noticed bitcode files (.bc) are not > generated with meson. Does this means that "inlining" of JIT doesn't > work when PostgreSQL is build with meson? Yes. I believe [1] aims to fix this. David [1] https://commitfest.postgresql.org/patch/5671/
Re: JIT works only partially with meson build?
От:
Laurenz Albe <laurenz.albe@cybertec.at>
Дата:
On Fri, 2025-06-27 at 16:19 +0900, Yugo Nagata wrote: > On Mon, 26 May 2025 19:17:53 +1200 > David Rowley wrote: > > > On Mon, 26 May 2025 at 18:08, Yugo Nagata wrote: > > > While building PostgreSQL 17 on Windows, I noticed bitcode files (.bc) are not > > > generated with meson. Does this means that "inlining" of JIT doesn't > > > work when PostgreSQL is build with meson? > > > > Yes. I believe [1] aims to fix this. > > > > [1] https://commitfest.postgresql.org/patch/5671/ > > Thank you for the clarification. > > I've attached a patch to update the documentation. > I believe it's worth stating this explicitly, since the fix will not be > applied until at the earliest PostgreSQL 19. I think that it is a good idea to document this lack of functionality. One thing stood out to me: > --- a/doc/src/sgml/jit.sgml > +++ b/doc/src/sgml/jit.sgml > @@ -36,7 +36,8 @@ > JIT compilation using url="https://llvm.org/">LLVM when > PostgreSQL is built with > - --with-llvm. > + --with-llvm > + or . You used the
Re: JIT works only partially with meson build?
On Tue, 30 Sep 2025 14:04:13 +0200 Laurenz Albe wrote: > On Fri, 2025-06-27 at 16:19 +0900, Yugo Nagata wrote: > > On Mon, 26 May 2025 19:17:53 +1200 > > David Rowley wrote: > > > > > On Mon, 26 May 2025 at 18:08, Yugo Nagata wrote: > > > > While building PostgreSQL 17 on Windows, I noticed bitcode files (.bc) are not > > > > generated with meson. Does this means that "inlining" of JIT doesn't > > > > work when PostgreSQL is build with meson? > > > > > > Yes. I believe [1] aims to fix this. > > > > > > [1] https://commitfest.postgresql.org/patch/5671/ > > > > Thank you for the clarification. > > > > I've attached a patch to update the documentation. > > I believe it's worth stating this explicitly, since the fix will not be > > applied until at the earliest PostgreSQL 19. > > I think that it is a good idea to document this lack of functionality. Thank you for taking a look at it. > One thing stood out to me: > > > --- a/doc/src/sgml/jit.sgml > > +++ b/doc/src/sgml/jit.sgml > > @@ -36,7 +36,8 @@ > > JIT compilation using > url="https://llvm.org/">LLVM when > > PostgreSQL is built with > > - --with-llvm. > > + --with-llvm > > + or . > > You used the
Re: JIT works only partially with meson build?
От:
Laurenz Albe <laurenz.albe@cybertec.at>
Дата:
On Tue, 2025-09-30 at 22:31 +0900, Yugo Nagata wrote: > > You used the
Re: JIT works only partially with meson build?
On Wed, 01 Oct 2025 15:25:51 +0200 Laurenz Albe wrote: > On Tue, 2025-09-30 at 22:31 +0900, Yugo Nagata wrote: > > > You used the
Re: JIT works only partially with meson build?
Hi Yugo,
cfbot fails because v2 is a plain diff, and git am cannot apply it.
Attached v3 is the same change made with git format-patch, plus a
commit message. It applies to master and REL_16_STABLE through
REL_19_STABLE.
One suggestion: EXPLAIN still shows "Inlining: true" in this case,
since it only checks PGJIT_INLINE. Maybe the note should say so.
Regards,
Shihao
Attached v3 is the same change made with git format-patch, plus a
commit message. It applies to master and REL_16_STABLE through
REL_19_STABLE.
One suggestion: EXPLAIN still shows "Inlining: true" in this case,
since it only checks PGJIT_INLINE. Maybe the note should say so.
Regards,
Shihao
Re: JIT works only partially with meson build?
Hi Shihao, On Thu, 17 Sep 2026 22:13:02 -0400 shihao zhong wrote: > Hi Yugo, > > cfbot fails because v2 is a plain diff, and git am cannot apply it. > Attached v3 is the same change made with git format-patch, plus a > commit message. It applies to master and REL_16_STABLE through > REL_19_STABLE. > > One suggestion: EXPLAIN still shows "Inlining: true" in this case, > since it only checks PGJIT_INLINE. Maybe the note should say so. Thak you for updating the patch. I've attached an updated path incorporating your suggestion. Regards,] Yugo Nagata -- Yugo Nagata
Re: JIT works only partially with meson build?
От:
Yugo Nagata <nagata@sraoss.co.jp>
Дата:
On Fri, 18 Sep 2026 21:00:20 +0900 Yugo Nagata wrote: > Hi Shihao, > > On Thu, 17 Sep 2026 22:13:02 -0400 > shihao zhong wrote: > > > Hi Yugo, > > > > cfbot fails because v2 is a plain diff, and git am cannot apply it. > > Attached v3 is the same change made with git format-patch, plus a > > commit message. It applies to master and REL_16_STABLE through > > REL_19_STABLE. > > > > One suggestion: EXPLAIN still shows "Inlining: true" in this case, > > since it only checks PGJIT_INLINE. Maybe the note should say so. > > Thak you for updating the patch. > I've attached an updated path incorporating your suggestion. It may be unnecessary once the LLVM bitcode emission patches [1] are committed, though. [1] https://www.postgresql.org/message-id/flat/CAN55FZ26ohMftt20NUtVAxU8Feqjhz-jEfUvFKATYEaRR%2Bxmqg%40mail.gmail.com#a7b90ab42f2c38fcddca74f063741c9d Regards, Yugo Nagata -- Yugo Nagata