Skip to content

Allow --replicas on Postgres branch create - #1537

Merged
nholden merged 2 commits into
mainfrom
cursor/branch-create-replicas-7b7c
Nov 21, 2026
Merged

nholden merged 2 commits into
mainfrom
cursor/branch-create-replicas-7b7c

Conversation

@nholden

@nholden nholden commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

pscale branch create --replicas N currently works only for backup restores and point-in-time recovery. This lets a normal Postgres branch create take --replicas too. 0 is a single-node branch with no replicas; 2-8 is HA. The API checks the count against the cluster size.

Depends on https://github.com/planetscale/api-bb/pull/24236, which accepts replicas on normal Postgres branch create.

planetscale/terraform-provider-planetscale#293
#1397

Open in Web Open in Cursor 

nholden commented Nov 20, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

no-itsbackpack
no-itsbackpack previously approved these changes Nov 20, 2026

nholden commented Nov 21, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit ace28d7. Configure here.

@nholden
nholden marked this pull request as ready for review November 21, 2026 01:27
@nholden
nholden requested a review from a team as a code owner November 21, 2026 01:27
cursoragent and others added 2 commits November 21, 2026 01:29
Send --replicas on a normal PostgreSQL branch create, not only on
backup restore or point-in-time recovery. The API validates the count
against the cluster size. 0 is a single node.

Co-authored-by: Nick Holden <nick.r.holden@gmail.com>
Drop the "not including the primary" wording. 0 is a single-node
branch with no replicas; 2-8 is HA.

Co-authored-by: Nick Holden <nick.r.holden@gmail.com>
@cursor
cursor Bot force-pushed the cursor/branch-create-replicas-7b7c branch from ace28d7 to c26162c Compare November 21, 2026 01:29
@nholden
nholden merged commit e7c4c3e into main Nov 21, 2026
5 checks passed
@nholden
nholden deleted the cursor/branch-create-replicas-7b7c branch November 21, 2026 01:44
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.

3 participants