serverless-postgres

JSON →
library 2.1.2 ·javascript
verified Jun 5, 2026

Serverless-postgres is a wrapper for node-postgres (pg) designed for serverless/FaaS environments like AWS Lambda. Current stable version is 2.1.2, released via semantic-release. It manages database connections to prevent 'too many clients' errors by garbage collecting zombie connections and retrying with backoff on failure. Key differentiators: connection filtering via application_name (v2+), automatic connection cleanup, and configurable retry delays. Unlike raw pg, it addresses connection pooling issues in serverless contexts.