Skip to main content

One post tagged with "transactions"

View All Tags

Pooling without choosing a mode

· 9 min read
Manan Gupta
Founding Engineer, Multigres

Part 3 of a series. Start with Two jobs, two processes for the architecture and motivation.

Connection pool modes aren't an arbitrary choice. They exist because Postgres connections carry session state - temp tables, prepared statements, settings, transactions in progress - and it's not always safe to give one client's connection to a different client. The traditional answer is to pick a mode at configuration time and live with it. We didn't want users to have to make that pick. This post is about how Multigres figures it out per-query, automatically.

If you have comments or questions, please start a discussion on the Multigres GitHub repository.