What it takes to make a Postgres connection pooler invisible to your app.
218K followers
10,210 views
12 Comments
Comments from the original post on X (Twitter)

@marchoeffl
curious how you recover prepared statements after a schema change without forcing a reconnect
3 likes

@jxngrx
does the pooler actually invalidate stale prepared statements gracefully, or is there a window where clients using old ones just break? that's the edge case i'd test first.
1 like

@TsenJonathan
handling DateStyle so someone's app doesn't randomly flip day and month midway through the night is heroic work
1 like

@Rxdha1
Supa chad
1 like

@isbkch
prepared statements across transaction pooling is always where apps silently break
1 like

@consoledotlog
of course DateStyle is the weird one

@0xSacheto
pooler issues are the sneakiest because they always look like app bugs first. love these deep dives

@itsAhsanSheikh
Prepared statements are the classic break with transaction pooling: a client prepares on one backend, its next transaction lands on another, and it gets "prepared statement does not exist". Does Multigres re-prepare per backend, or share a cache keyed by query text?

@BreezeOg1
datestyle always the weird one hehe

@MusawirRaji
does the pooler keep settings that row level security policies read, like a company id set per session, from carrying over to the next client? on the platform I'm building the company always comes from the session, so that's the one I would test first

@skromez
does Multigres handle direct TLS with libpq 17 ALPN out of the box? hit a weird snag with that putting PgBouncer behind Traefik recently

@yaserabbass
the DateStyle bit is the kind of thing you only find at 2am
