Follow-up to #1497 / #1532.
ensurePool() in src/db/postgres/helper.ts creates new Pool({ connectionString }) with no 'error' listener. Per the node-postgres docs, an idle client that emits 'error' with no listener throws an uncaught exception and can crash the process.
Scope
Attach pool.on('error', …) to log and swallow idle-client errors so a transient backend hiccup doesn't take the proxy down.
Follow-up to #1497 / #1532.
ensurePool()insrc/db/postgres/helper.tscreatesnew Pool({ connectionString })with no'error'listener. Per the node-postgres docs, an idle client that emits'error'with no listener throws an uncaught exception and can crash the process.Scope
Attach
pool.on('error', …)to log and swallow idle-client errors so a transient backend hiccup doesn't take the proxy down.