Dashboard Configuration
This extension requires activation via the PlanetScale dashboard before it can be used. It must be enabled through shared libraries and requires a database restart. To enable pg_duckdb:1
From the PlanetScale organization dashboard, select the desired database
2
Navigate to the Clusters page from the menu on the left
3
Choose the branch whose extensions you’d like to configure in the “Branch” dropdown
4
Select the Extensions tab
5
Enable
pg_duckdb and configure its parameters6
Click Queue extension changes to apply the configuration
7
Once you’re ready to apply the changes, click “Apply changes”
Parameters
duckdb.postgres_role
- Type: String
- Default:
pscale_superuser - Description: Specifies the Postgres role that is allowed to use DuckDB execution and manage secrets.
duckdb.memory_limit
- Type: Integer
- Default: 0
- Description: Maximum memory DuckDB can use per connection in megabytes. Setting to 0 activates DuckDB’s default (80% of available RAM).
Usage
After enabling the extension through the dashboard, you can install it in your database:External Documentation
For more detailed information aboutpg_duckdb usage and functionality, see the official pg_duckdb documentation.
