14.3. Configuring Automatic Loading of a DuckDB Extension (axe.autoload_extension) #

By default, DuckDB extensions installed via the axe.install_extension stored procedure are loaded automatically into every session that uses the analytics engine. The axe.autoload_extension stored procedure allows you to change this behavior.

Required privileges: Superuser or the Postgres Pro AXE administrator with the following privileges:

  • the EXECUTE privilege on this stored procedure

  • the UPDATE privilege on the duckdb.extensions service table

For more information about access management, refer to Chapter 12.

Execute the following command on the Postgres Pro AXE server:

  SELECT axe.autoload_extension(extension_name, automatic_load => automatic_load);

Where:

  • extension_name: The name of the installed DuckDB extension.

  • automatic_load: Specifies whether the DuckDB extension must be automatically loaded into new sessions.

    Possible values:

    • true

    • false

    Default value: true.

Example 14.3. Configuring Automatic Loading of the Iceberg Extension

Disabling automatic loading of a DuckDB extension:

  SELECT axe.autoload_extension('iceberg', false);

Enabling automatic loading of a DuckDB extension:

  SELECT axe.autoload_extension('iceberg', true);

FAQ