Top
Enterprise Postgres 14 SP1 Installation and Setup Guide for Server
FUJITSU Software

4.6.10 Build with PGXS

Many PostgreSQL extensions are built using a build base for extensions called PGXS. Building with PGXS also generates files related to llvm. Depending on which version of llvm you are using, follow these steps:

4.6.10.1 Using the Default Version of llvm

The default version of llvm is described in "2.1 Required Operating System". If you want to use the default version of llvm, use the OSS documentation to build and install OSS.

4.6.10.2 Using a Non-Default Version of llvm

  1. As superuser, copy the Makefile.global corresponding to the version of llvm you want to use. The following is an example of using version 11 of llvm. Makefile.global is overwritten when an emergency fix is applied or removed from Fujitsu Enterpise Postgres, this procedure should be performed each time a build is performed.

    $ su -
    Password:******
    # cp /opt/fsepv<x>server64/lib/pgxs/src/Makefile.global-vsn11 /opt/fsepv<x>server64/lib/pgxs/src/Makefile.global
  2. Follow the OSS documentation to build and install OSS.

  3. As superuser, run the following command:. The following is an example of using version 11 of llvm:.

    $ su -
    Password:******
    # mv /opt/fsepv<x>server64/lib/bitcode/<OSS名>* /opt/fsepv<x>server64/lib/bitcode-vsn11/

4.6.10.3 Without llvm

If you do not use llvm, use the with _ llvm = no option when performing the build, as shown below. For other options, follow the OSS documentation.

# make USE_PGXS=1 with_llvm=no