Memory Context is King: Why PostgreSQL Ditches malloc/free, Vaibhav Dalvi, #FOSSASIA Summit 2026

Video by FOSSASIA via YouTube
Memory Context is King: Why PostgreSQL Ditches malloc/free, Vaibhav Dalvi, #FOSSASIA Summit 2026

Why doesn’t PostgreSQL rely on traditional `malloc()` and `free()` for memory management? This session introduces the Memory Context system, one of the core architectural features that helps PostgreSQL remain stable, efficient, and leak-resistant as a long-running database server.

Designed for PostgreSQL developers and new contributors, this talk explains how memory lifecycle management works inside PostgreSQL, why memory contexts are essential, and how key structures such as TopMemoryContext and CacheMemoryContext organize memory allocation. You’ll also learn practical techniques for debugging memory usage and understanding PostgreSQL internals.

Whether you’re exploring PostgreSQL source code, developing extensions, or contributing to the database engine, this session provides a solid foundation for understanding one of PostgreSQL’s most important internal systems.

FOSSASIA Summit 2026 held in Bangkok, is Asia’s leading Open Source tech conference featuring sessions on #AI, #Cloud, #DevOps, #Open Hardware, #Security, #Web #Mobile Technologies, #Web3, and #Databases. Learn more: http://summit.fossasia.org

Session slide: https://eventyay.com/ev/88882f3e/talk/87GTQ5FGFVGK/

#FOSSASIA #FOSSASIASummit #opensource #FOSS

Source