Josef Machytka
PostgreSQL Specialist @ credativ GmbH
Born 1969 in Czech republic, dipl. engineer Technical University Ostrava, Czech rep., field automation and robotics, living since 2014 in Berlin, Germany.
- 33+ years of production experience with different databases: PostgreSQL 13 years, BigQuery 7y, Oracle 15y, MySQL 12y, Elasticsearch 5y, MS SQL 5y, Sybase ASE, FoxPro
- 10+ years of experience with high volume and velocity data ingestion pipelines, Data Analysis, Data Warehouse and Data Lakehouse architecture
- 3+ years of practical experience with ML / LLMs, their usage, architecture and principles
POSETTE 2026 Talk
Linux and PostgreSQL in the Multiverse of Connections
PostgreSQL connections are expensive, their count is often the limiting factor for performance and stability. Connection pooling is a primary scaling tool for modern systems with microservices, short-lived clients, and bursty traffic. We all know it, but do we really understand why? This talk offers a deep dive into PostgreSQL and Linux architecture, explaining the concrete costs of “too many connections” in PostgreSQL’s process-per-connection model. We will discuss CPU overhead from context switching; kernel resources such as sockets and file descriptors; differences between the classic Completely Fair Scheduler (CFS) and its newer EEVDF-based scheduling approach; limitations of MVCC snapshot implementation across different PostgreSQL versions; accumulation of allocations in per-session memory contexts; and how much memory a query can allocate during execution. We will also look for guidance on “maximum active connections per CPU core” for OLTP vs. OLAP.
Key takeaways
- Pool when churn and burstiness dominate
- High connection counts amplify CPU context switching
- Idle sessions still consume memory
- Think in “active connections per core”
- Beware the thundering herd
- Version and platform choices influence limits
Subscribe to the POSETTE newsletter
to keep up with the latest news
Join the conversation
Use the hashtag #PosetteConf