pg or Postgres.js: which Node.js PostgreSQL driver?
Summary As of October 2026, use pg for a conventional Node.js service or a Supabase transaction-pooler connection; choose Postgres.js when tagged SQL templates fit your app and its connection path has been tested, with the general default pg 8.23.1
Not for ORM choice with Drizzle or Prisma 7, see drizzle-or-prisma-7-or-kysely-for-a-typescript-postgres-app-workers
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread pg-or-postgres-js-node-driver-pooler-choice and help me try it