You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add configurable checkout timeout for transactions
pog.transaction uses pgo:checkout to acquire a dedicated connection, but
previously called it with no timeout option, defaulting to pgo_pool's
hardcoded 5000ms. This is too short for serverless databases (Neon,
Supabase) with cold starts or cross-region connections with high latency.
Changes:
- Add checkout_timeout field to Config (default: 5000ms for backwards compat)
- Add checkout_timeout/2 setter function
- Store checkout_timeout in Pool connection variant
- Pass timeout to pgo:checkout/2 in transaction path
- Update pog_ffi checkout/2 to accept and forward timeout
Fixes#82
0 commit comments