Skip to content

fix: remove pool param for studio ppg connections - #28883

Merged
jkomyno merged 1 commit into
mainfrom
fix/tml-1670-studio-cli-connection-pool
Dec 9, 2025
Merged

jkomyno merged 1 commit into
mainfrom
fix/tml-1670-studio-cli-connection-pool

Conversation

@FGoessler

@FGoessler FGoessler commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

In Studio CLI the issue is that when using the pool query parameter the underlying postgres npm package is not able to connect to ppg. Even when using the plain postgres package with a ppg url I get the error of:

PostgresError: Failed to connect to upstream database. Please contact Prisma support if the problem persists.

This PR works around this issue by ensuring an unpooled connection string to ppg.

Summary by CodeRabbit

  • Bug Fixes
    • Improved Postgres database connection stability by refining connection parameter configuration.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 8, 2025 •

Copy link
Copy Markdown
Contributor

Walkthrough

Modified the Postgres connection URL handling to remove the 'pool' parameter from the connection string before initializing the client. The 'pool' parameter was added to the PRISMA_ORM_SPECIFIC_QUERY_PARAMETERS configuration to address a connectivity issue with PostgreSQL connection pooling.

Changes

Cohort / File(s) Summary
Postgres connection pooling removal
packages/cli/src/Studio.ts
Added 'pool' to PRISMA_ORM_SPECIFIC_QUERY_PARAMETERS to filter out the pool parameter from Postgres connection URLs during client initialization

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'fix: remove pool param for studio ppg connections' clearly and specifically describes the main change: removing the pool parameter from Postgres PPG connections in Studio, which directly addresses the connectivity issue described in the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/tml-1670-studio-cli-connection-pool

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@FGoessler FGoessler added this to the 7.2.0 milestone Dec 8, 2025
@github-actions

github-actions Bot commented Dec 8, 2025

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
packages/client/runtime/index-browser.js 2.23 KB (0%)
packages/client/runtime/index-browser.d.ts 3.28 KB (0%)
packages/cli/build/index.js 2.51 MB (+0.01% 🔺)
packages/client/prisma-client-0.0.0.tgz 10.24 MB (0%)
packages/cli/prisma-0.0.0.tgz 6.71 MB (+0.01% 🔺)
packages/bundle-size/da-workers-libsql/output.tgz 805.36 KB (0%)
packages/bundle-size/da-workers-neon/output.tgz 859.4 KB (0%)
packages/bundle-size/da-workers-pg/output.tgz 852.34 KB (0%)
packages/bundle-size/da-workers-planetscale/output.tgz 804.91 KB (0%)
packages/bundle-size/da-workers-d1/output.tgz 788.27 KB (0%)

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