Starting from DuckDB v1.0.0
, it is possible to load the DuckPGQ extension as a community extension. Please note that this version is not the latest. For instructions on loading the latest version, see Loading the latest version.
To install and load the community version of DuckPGQ, use the following SQL commands in the DuckDB CLI or within a DuckDB connection:
-- Install the DuckPGQ extension from the community repository
INSTALL 'duckpgq' FROM 'community';
-- Load the DuckPGQ extension
LOAD 'duckpgq';
To use the latest version of DuckPGQ, you will need to enable the unsigned
flag in DuckDB. This allows the installation of custom, unsigned extensions from external repositories.
To load the latest version in the DuckDB CLI:
unsigned
flag:duckdb -unsigned
SET custom_extension_repository = '<http://duckpgq.s3.eu-north-1.amazonaws.com>';
FORCE INSTALL 'duckpgq';
LOAD 'duckpgq'
To load the latest version of DuckPGQ within a Python environment, follow these steps:
allow_unsigned_extensions
flag enabled:import duckdb
conn = duckdb.connect(config={"allow_unsigned_extensions": "true"})
conn.execute("SET custom_extension_repository = '<http://duckpgq.s3.eu-north-1.amazonaws.com>';")
conn.execute("FORCE INSTALL 'duckpgq';")
conn.execute("LOAD 'duckpgq';")