Repository navigation
Conversation
Add `--standby-count 0|1|2` to `cloud postgres create` and `update`. When `--ha-type` is also given, the count is checked against it before any request (none takes 0, async 1, sync 1 or 2) and a mismatch is a usage error (exit 2). A count without `--ha-type` is left to the API, which checks it against the service's HA type. `cloud postgres get` and `list` show the standby count in human output; JSON already carried `standbyCount`. A standby-count change, like an HA change, gets the background-change note and no `next` poll, since `standbyCount` flips on acceptance. Fixes #1471 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sdairs
force-pushed
the
claude/drift-1466-cli-postgres
branch
from
November 17, 2026 16:45
5d95fbc to
3a6ef70
Compare
sdairs
changed the base branch from
claude/drift-1466-api-postgres
to
claude/drift-1466-cli-services
November 17, 2026 16:45
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1471. CLI PR for the Postgres part of #1466, stacked on #1477.
cloud postgres createandupdatetake--standby-count 0|1|2.--ha-typeis also given, the pair is checked against it: none takes 0, async 1, sync 1 or 2. A mismatch is a usage error (exit 2) before any HTTP call; any other case is left to the API.getshows aStandby countline andlistaStandbyscolumn. JSON already carriesstandbyCount.nextpoll.🤖 Generated with Claude Code
Note
Medium Risk
Changes managed Postgres HA topology (standby provisioning) via create/update, though client-side validation and broad test coverage limit misuse risk.
Overview
Adds
--standby-count 0|1|2tocloud postgres createandupdate, wiring it through to the API asstandbyCount. When--ha-typeis also set, the CLI rejects invalid pairings locally (none→0, async→1, sync→1 or 2) before any HTTP call; otherwise validation is left to the API.getandlistnow surface standby count in human output (Standby count/ Standbys column); JSON already exposedstandbyCount. Updates that change HA type or standby count are treated like HA changes: no JSONnextpoll hint, and human mode prints the background-replication note. Docs and unit/integration tests cover parsing, validation, request builders, and list output.Reviewed by Cursor Bugbot for commit 3a6ef70. Bugbot is set up for automated code reviews on this repo. Configure here.