Skip to content

site(postgres): session-state workloads use the direct connection (Prisma ORM FAQ) - #9015

Merged
gregory-boch-prisma merged 1 commit into
mainfrom
site/postgres-faq-pooling-session-state-1202
Dec 2, 2026
Merged

gregory-boch-prisma merged 1 commit into
mainfrom
site/postgres-faq-pooling-session-state-1202

Conversation

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor

The /postgres FAQ "Do I need Prisma ORM to use Prisma Postgres?" said the built-in connection pooling works for every client. That holds for ordinary queries, but a workload that depends on session state needs the direct connection.

Changes

  • FAQ "Do I need Prisma ORM to use Prisma Postgres?": "the built-in connection pooling works for all of them" now reads "works for ordinary queries from all of them (a workload that needs session state, such as LISTEN, uses the direct connection)". The direct-connection mention links to the connection pooling docs.

Why: the sentence implied that LISTEN and other session-state features work through the pooler. The same wording is being fixed in the serverless Postgres blog post.

Sources checked 2026-12-02

Checks

  • pnpm --filter site test: 414 passed, 0 failed.

🤖 Generated with Claude Code

… in the Prisma ORM FAQ

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
blog Ready Ready Preview Dec 2, 2026 8:24am UTC
docs Ready Ready Preview Dec 2, 2026 8:24am UTC
eclipse Ready Ready Preview Dec 2, 2026 8:24am UTC
site Ready Ready Preview Dec 2, 2026 8:24am UTC
1 Skipped Deployment
Project Deployment Actions Updated
handbook Skipped Skipped Dec 2, 2026 8:24am UTC

Request Review

@vercel
vercel Bot temporarily deployed to Preview – handbook December 2, 2026 08:21 Inactive
@prisma-gizmo

prisma-gizmo Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

✅ Gizmo reviewed 81c5fd2 — posted 0 inline comment(s) this pass.

Open findings: none

Change walkthrough

This PR corrects one FAQ answer on the /postgres product page: the claim that the built-in connection pooling "works for all of them" now scopes to ordinary queries and points readers whose workloads need session state (e.g. LISTEN) to the direct connection docs, matching the behavior documented in the connection-pooling guide.

The change itself — postgres.ts:187 is a one-sentence edit inside the "Do I need Prisma ORM to use Prisma Postgres?" answer. The new parenthetical follows the file's established claim discipline: every FAQ claim is checked against the docs page it links, and this one links straight to the page that states the rule.

Inline-markup compatibility — the FAQ answers are plain strings with a tiny inline syntax parsed by faq-answer.tsx. The new [direct connection](/docs/postgres/database/connection-pooling) link matches the parser's LINK_PATTERN (site-relative href, closing paren of the surrounding sentence is not consumed), and the JSON-LD stripper in structured-data.ts reduces it to the anchor text, so the visible accordion and the FAQPage structured data cannot drift.

Link target — /docs/postgres/database/connection-pooling is already a live route on this site: it is linked from the HIPAA sections (src/app/postgres/hipaa/_sections.tsx) and defined as DOCS_POOLING in src/app/postgres/free-postgresql-hosting/_content.ts, so the FAQ now points at the same destination those pages use.

Copy consistency — the correction aligns the FAQ with its sibling answer "Where do I find my connection string?" in the same file, which already tells readers to reserve the direct connection string for work that needs it (migrations, Studio, pg_dump). The PR description notes the same wording fix is being applied to the serverless Postgres blog post in a separate change.

@coderabbitai

coderabbitai Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Add your request for automatic reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 51 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 4e9c3d3a-edef-4bca-95e3-a5fb2ceb97b4
Commits

Reviewing files that changed from the base of the PR and between 168f134 and 81c5fd2.

Files selected for processing: 1

  • apps/site/src/components/product/content/postgres.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@gregory-boch-prisma

Copy link
Copy Markdown
Contributor Author

@prisma-gizmo review

@prisma-gizmo prisma-gizmo 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.

New findings: none · trace

@prisma-gizmo prisma-gizmo 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.

No Gizmo finding is open and the head commit has been reviewed. Approving.

@gregory-boch-prisma
gregory-boch-prisma merged commit 4fb81aa into main Dec 2, 2026
34 checks passed
@gregory-boch-prisma
gregory-boch-prisma deleted the site/postgres-faq-pooling-session-state-1202 branch December 2, 2026 08:32

This branch was successfully deployed

5 active and 1 inactive deployments
Preview – docs — 81c5fd27 Deployed Dec 2, 2026 by vercel[bot]
Preview – blog — 81c5fd27 Deployed Dec 2, 2026 by vercel[bot]
Preview – site — 81c5fd27 Deployed Dec 2, 2026 by vercel[bot]
Preview – eclipse — 81c5fd27 Deployed Dec 2, 2026 by vercel[bot]
Preview – handbook — 81c5fd27 Deployed Dec 2, 2026 by vercel[bot]
prisma-preview/site/postgres-faq-pooling-session-state-1202 — 81c5fd27 Deployed Dec 2, 2026 by gregory-boch-prisma via deploy #1956
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.

1 participant