Manage Neki extensions with Terraform and the CLI
You can now manage Neki extensions by name in Terraform and the pscale CLI, and change their settings in the same update.
Terraform
Enable pgvector with extensions and configure it with parameters:
resource "planetscale_neki_configuration_profile" "analytics" {
organization = "acme"
database = "app"
branch = "main"
name = "analytics"
extensions = ["vector"]
parameters = {
pgconf = {
"hnsw.ef_search" = "100"
}
}
}
The list replaces the currently enabled extensions. Omit extensions to leave them unchanged, or use extensions = [] to disable them.
Existing configurations that set preload libraries directly still work. Do not combine extensions with shared_preload_libraries or session_preload_libraries.
CLI
Use --extensions to enable pgvector alongside its settings:
pscale branch config-profile update app main default --org acme \ --extensions=vector \ --parameters pgconf.hnsw.ef_search=100
This replaces the currently enabled extensions. Separate multiple names with commas.
Leave out --extensions to change a setting without enabling or disabling extensions:
pscale branch config-profile update app main default --org acme \ --parameters pgconf.hnsw.ef_search=100
Use --extensions= to disable extensions:
pscale branch config-profile update app main default --org acme \ --extensions=
Extensions required by PlanetScale stay enabled in both Terraform and the CLI.