Movatterモバイル変換


[0]ホーム

URL:



Facebook
Postgres Pro
Facebook
Downloads
30.4. Extensibility
Prev UpChapter 30. Just-in-Time Compilation (JIT)Home Next

30.4. Extensibility#

30.4.1. Inlining Support for Extensions#

PostgreSQL'sJIT implementation can inline the bodies of functions of typesC andinternal, as well as operators based on such functions. To do so for functions in extensions, the definitions of those functions need to be made available. When usingPGXS to build an extension against a server that has been compiled with LLVM JIT support, the relevant files will be built and installed automatically.

The relevant files have to be installed into$pkglibdir/bitcode/$extension/ and a summary of them into$pkglibdir/bitcode/$extension.index.bc, where$pkglibdir is the directory returned bypg_config --pkglibdir and$extension is the base name of the extension's shared library.

Note

For functions built intoPostgreSQL itself, the bitcode is installed into$pkglibdir/bitcode/postgres.

30.4.2. PluggableJIT Providers#

PostgreSQL provides aJIT implementation based onLLVM. The interface to theJIT provider is pluggable and the provider can be changed without recompiling (although currently, the build process only provides inlining support data forLLVM). The active provider is chosen via the settingjit_provider.


Prev Up Next
30.3. Configuration Home Chapter 31. Regression Tests
pdfepub
Go to PostgreSQL 17
By continuing to browse this website, you agree to the use of cookies. Go toPrivacy Policy.

[8]ページ先頭

©2009-2025 Movatter.jp