Chapter 19. Installing Postgres Pro AXE

On servers prepared for your deployment scenario:

Important

You must always install, configure, and create pgpro_axe before pgpro_metastore.

To install Postgres Pro AXE:

  1. Install the Postgres Pro DBMS from the distribution.

    For more information, refer to the Postgres Pro technical support.

  2. Install pgpro_axe and pgpro_metastore:

    1. Install the pgpro_axe and pgpro_metastore packages received from Postgres Pro.

    2. Add the library names pgpro_axe and pgpro_metastore to the shared_preload_libraries variable in the postgresql.conf configuration file, separated by a comma:

        shared_preload_libraries = 'pgpro_axe, pgpro_metastore'
      
    3. Configure pgpro_axe parameters as required.

      Example 19.1. Minimal pgpro_axe configuration

        duckdb.unsafe_allow_execution_inside_functions = on
        duckdb.force_execution = false
        duckdb.max_memory = '16GB'
        duckdb.threads = 2
        duckdb.max_workers_per_postgres_scan = 2
        duckdb.threads_for_postgres_scan = 2
        metastore.detailed_error_log = false
        duckdb.convert_unsupported_numeric_to_double = true
      

    4. Restart the Postgres Pro server.

    5. Create pgpro_axe and pgpro_metastore in the database:

      CREATE EXTENSION pgpro_axe;
      CREATE EXTENSION pgpro_metastore;