From a quick look at the reasons they provide for choosing `node-postgres`: > With node-postgres, y

From a quick look at the reasons they provide for choosing node-postgres:

With node-postgres, you can install pg-native to boost the speed of both node-postgres and Drizzle by approximately 10%.
This won't matter on Workers because Workers doesn't support native extensions.

node-postgres supports providing type parsers on a per-query basis without globally patching things. For more details, see Types Docs.
Seems valid but probably somewhat of an advanced use-case?

postgres.js uses prepared statements by default, which you may need to opt out of. This could be a potential issue in AWS environments, among others, so please keep that in mind.
Hyperdrive fully supports prepared statements now, and they improve performance so this is probably a benefit of postgres.js actually
Was this page helpful?