Files
Reactive-Resume/packages
helder-mattos 50885176e0 fix(db): attach an error handler to the pg pool (#3172)
A Postgres connection can drop at any time — e.g. a serverless Postgres such as
Neon terminating the connection (error code 57P01). node-postgres surfaces this as
an 'error' event; without a listener node re-throws it as an unhandled 'error' and
crashes the process. Idle clients emit on the pool, but a client that is connecting
or checked out emits on the client itself, so we listen on both the pool and each
client. The pool then discards the dead client and opens a fresh one on the next
query, so the server survives transient/idle disconnects.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 09:28:18 +02:00
..
2026-05-19 13:14:21 +02:00
2026-07-03 20:04:36 +02:00
2026-07-03 20:04:36 +02:00
2026-07-03 20:04:36 +02:00
2026-07-03 20:04:36 +02:00