Overview of node-postgres features
masternode-postgres is a non-blocking PostgreSQL client for Node.js (and compatible runtimes like Bun, Deno, and Cloudflare). It provides a pure JavaScript implementation with optional native libpq bindings that share the same API.
Key features include:
- Connection pooling via
pg-pool. - Extensible data-type coercion between JavaScript and PostgreSQL.
- Parameterized queries for security.
- Named statements with query plan caching.
- Async notifications using
LISTEN/NOTIFY. - Bulk import/export using
COPY TO/COPY FROMviapg-query-stream.