Conversation
Contributor
|
Preview URL: https://2b01117f.preview.developers.cloudflare.com |
🚀 Deploying Preview to Cloudflare 🚀Preview URL: https://docs-hyperdrive-postgres-js-prepare-false.previews.developers.cloudflare.com (commit 2b01117)This URL reflects your latest Preview deploymentPreview Deployments by commit
|
|
Mene kömək edin onu düzəldə ideal iwlesin |
Contributor
|
@ivoryibu This draft pull request has had no activity for 3 days. It will close after 7 days of inactivity. Transition to ready for review if ready. A codeowner can comment |
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
Adds a caution to the shared Hyperdrive driver recommendation note against setting
prepare: falseon a Postgres.js client. The note renders wherever Postgres.js is listed as supported: the supported drivers page and the Postgres.js and node-postgres driver pages.With prepared statements disabled, Postgres.js sends additional protocol messages to discover parameter types before each query, which Hyperdrive's transaction pooling mode does not reliably support. This can cause individual queries to hang or fail intermittently while the connection pool otherwise appears healthy — a failure mode that is hard to attribute to the driver configuration. The caution directs readers to node-postgres (
pg), which is already the recommended driver.Prompted by a community report of intermittent query hangs with Postgres.js
prepare: falsebehind Hyperdrive.Possible follow-up: the Drizzle ORM page note says node-postgres and Postgres.js are both "supported and compatible" — worth qualifying there too, since Drizzle with the Postgres.js driver may not use named prepared statements by default.
Documentation checklist