Skip to content

feat: add --db-name for Postgres in pscale shell - #1396

Merged
no-itsbackpack merged 2 commits into
mainfrom
cursor/postgres-shell-db-name-e7de
Sep 3, 2026
Merged

feat: add --db-name for Postgres in pscale shell#1396
no-itsbackpack merged 2 commits into
mainfrom
cursor/postgres-shell-db-name-e7de

Conversation

@no-itsbackpack

Copy link
Copy Markdown
Contributor

Closes #1395.

This change adds Postgres-only support for specifying the logical Postgres database at shell startup:

  • New flag: --db-name <name>
  • Positional alternative (Postgres only): pscale shell <database> <branch> <db-name>

pscale now launches psql with -d <db-name> instead of always using the hard-coded postgres.

MySQL behavior is unchanged; using --db-name with MySQL returns an error.

Slack Thread

Open in Web Open in Cursor 

Co-authored-by: Gomez <no-itsbackpack@users.noreply.github.com>
@no-itsbackpack
no-itsbackpack marked this pull request as ready for review September 3, 2026 16:03
@no-itsbackpack
no-itsbackpack requested a review from a team as a code owner September 3, 2026 16:03
Co-authored-by: Gomez <no-itsbackpack@users.noreply.github.com>
@no-itsbackpack
no-itsbackpack merged commit 26dd063 into main Sep 3, 2026
4 checks passed
@no-itsbackpack
no-itsbackpack deleted the cursor/postgres-shell-db-name-e7de branch September 3, 2026 17:05
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.

Allow specifying logical database name for postgres when connecting using pscale shell

4 participants