Hyperdrive: clarify application_name for drivers that set their own (e.g. Postgres.js)#32108
Open
ivoryibu wants to merge 1 commit into
Open
Hyperdrive: clarify application_name for drivers that set their own (e.g. Postgres.js)#32108ivoryibu wants to merge 1 commit into
ivoryibu wants to merge 1 commit into
Conversation
ivoryibu
requested review from
a team,
Oxyjun,
elithrar,
irvinebroque,
rita3ko,
sejoker,
thomasgauvin and
vy-ton
as code owners
July 16, 2026 14:48
Contributor
Review💡 1 suggestion found in commit Fix in your agentFix the following review findings in PR #32108 (https://github.com/cloudflare/cloudflare-docs/pull/32108).
Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
After triaging, fix all legitimate findings. For any you decide to skip,
post a comment on this PR with the finding ID and your reasoning.
---
## Style Guide Review
### Suggestions (1)
#### SG-679c4a0f5ca3 · Use TypeScriptExample component for TypeScript code blocks
- **File:** `src/content/docs/hyperdrive/examples/connect-to-postgres/index.mdx` line 97
- **Issue:** Added raw ```ts fenced block in a docs MDX file
- **Fix:** Use <TypeScriptExample> instead; it auto-generates a JS tab from the TypeScript source.
Code ReviewThis code review is in beta and may not always be helpful — use your judgment. No code review issues found. ConventionsNo convention issues found. Style Guide ReviewSuggestions (1)
CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
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.
Summary
Clarifies the "Identify connections from Hyperdrive" section of the Connect to PostgreSQL page.
The current text states unconditionally that Hyperdrive connections appear as
application_name = 'Cloudflare Hyperdrive'inpg_stat_activity. That is only true for drivers that do not set their ownapplication_name(for example,node-postgres/pg).Some drivers send a default
application_namein the Postgres startup packet. Postgres.js defaults topostgres.js(env.PGAPPNAME || 'postgres.js'). Hyperdrive forwards that client-supplied value to the database, so those connections show up aspostgres.js— leading users to believe they are bypassing Hyperdrive when they are not.Reproduction
Same Hyperdrive config and database, comparing drivers via
SELECT application_name FROM pg_stat_activity WHERE pid = pg_backend_pid():application_nameseen by Postgrespg(node-postgres)Cloudflare Hyperdrivepostgres.js+ Drizzlepostgres.jspostgres.js+ Drizzle,connection.application_nameoverriddenCloudflare HyperdriveChange
Adds a note explaining the behavior and showing how to set
application_nameexplicitly with Postgres.js so connections remain identifiable as Hyperdrive.