Build
Local Development
Run with Docker
Docker images are available on Dockerhub and are based on the official Postgres image. Use of this image is the same as the Postgres image. For example, you can run the image directly:
Or you can use docker compose:
Once started, connect to the database using psql
:
For more information, see the Docker README.
Compile from Source
To build pg_duckdb, you need:
- Postgres 15-17
- Ubuntu 22.04-24.04 or MacOS
- Standard set of build tools for building Postgres extensions
- Build tools that are required to build DuckDB
To build and install, run:
Add pg_duckdb
to the shared_preload_libraries
in your postgresql.conf
file:
Next, create the pg_duckdb
extension: