{
  "slug": "pscale-branch-extensions-enable-and-disable-preloadable-postgres-extensions-775e95682c6c",
  "title": "pscale branch extensions enable and disable preloadable Postgres extensions",
  "tools": [
    "pscale"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-09T18:40:28.000Z",
  "announced_at": "2026-10-09T18:40:28.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a Postgres branch’s extension catalog marks an extension `can_enable: true`, use `pscale branch extensions enable|disable` to toggle it; the command queues a branch change that may restart the database. Warn the user first, then track it with `resize status` or use `--wait`.",
    "examples": [
      "pscale branch extensions enable <database> <branch> <extension> --org <org> --format json",
      "pscale branch extensions disable <database> <branch> <extension> --org <org> --format json",
      "pscale branch extensions enable <database> <branch> <extension> --org <org> --format json --wait --wait-timeout <duration>"
    ],
    "gotchas": [
      "Version: v0.344.0",
      "<database> (required): Database name.",
      "<branch> (required): Branch name.",
      "<extension> (required): Extension name; it must be listed for the branch and marked `can_enable: true`.",
      "--org <org> (required): Selects the organization for the resource command.",
      "--format json: Selects JSON output; the documented examples use it.",
      "--wait: Waits for the change request to complete before returning.",
      "--wait-timeout <duration>: Maximum time to wait when `--wait` is used; defaults to 10m.",
      "Prerequisite: The database must be PostgreSQL. Neki extensions are managed per configuration profile; Vitess databases are unsupported by this command.",
      "Prerequisite: The extension must appear in `pscale branch extensions list` and be marked `can_enable: true`.",
      "Prerequisite: Authenticate with `pscale auth login`; for headless/CI use `--service-token-id` and `--service-token` on the command.",
      "Postgres only; Neki uses `branch config-profile extensions enable|disable`.",
      "The extension must have `can_enable: true`.",
      "The change queues a branch change and may restart the database.",
      "Extensions loaded with `CREATE EXTENSION` are outside this flow."
    ]
  },
  "why_it_matters": "Enable or disable a preloadable extension on a Postgres branch while preserving the branch's other selected libraries.",
  "before": "The release note says users had to edit the preload parameter directly, which could drop other libraries from the list.",
  "sources": [
    "https://github.com/planetscale/cli/releases/tag/v0.344.0",
    "https://github.com/planetscale/cli/pull/1462",
    "https://github.com/planetscale/cli/blob/v0.344.0/AGENTS.md",
    "https://github.com/planetscale/cli/blob/v0.344.0/internal/cmd/branch/extensions.go"
  ],
  "rank": 0.97025,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-d21b3b8401c437f2-1:gate",
    "evidence_hash": "f2510b597176b2744590d8f73597b3f98514f7fd60bf1ea06ec9ab31169ab4e5"
  },
  "review": {
    "draft_hash": "a686e272ede9dc2fb9c41a6e5e8ba36878f241cfe71607977f763e097bb7ce6e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-09T18:40:28.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
