Skip to content

Support Postgres branches in branch infra#1287

Merged
nickvanw merged 1 commit into
mainfrom
postgres-branch-infra
Jul 8, 2026
Merged

Support Postgres branches in branch infra#1287
nickvanw merged 1 commit into
mainfrom
postgres-branch-infra

Conversation

@nickvanw

@nickvanw nickvanw commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

pscale branch infra only worked for Vitess branches. The branch infrastructure API now serves Postgres branches too, so this bumps planetscale-go to v0.177.0 and renders the Postgres response.

Changes

  • Bump planetscale-go v0.176.0 → v0.177.0, which models BranchInfrastructure as a per-engine union (Vitess / Postgres); the Vitess path is updated for the new field layout with no behavior change.
  • For Postgres branches, render a Postgres-native table: one row per node (postgres) and per bouncer (pgbouncer) with role, size, availability zone, and storage usage/capacity. JSON/CSV output marshals the underlying SDK objects, matching how the Vitess pods table behaves.

Why

The API returns an engine-native shape per database kind rather than forcing Postgres data into the Vitess pods shape, so the command branches once on which engine the response describes. The command remains hidden and the API is feature-gated with no stability guarantee.

Bump planetscale-go to v0.177.0, which models branch infrastructure as
a per-engine union. The infra command now renders a Postgres-native
table (nodes and bouncers with role, size, availability zone, and
storage) for Postgres branches, and keeps the existing pods table for
Vitess branches.
@nickvanw nickvanw requested a review from a team as a code owner July 8, 2026 22:22

@dgraham dgraham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚡️

@nickvanw nickvanw merged commit cadf74a into main Jul 8, 2026
4 checks passed
@nickvanw nickvanw deleted the postgres-branch-infra branch July 8, 2026 22:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants