5 ms·
> Also, another fun fact: in spite of being written in old school C, PostgreSQL uses automatic memory management in most of its code by using "memory contexts"
by RcouF1uZ4gsC 4y ago
> Also, another fun fact: in spite of being written in old school C, PostgreSQL uses automatic memory management in most of its code by using "memory contexts" and users rarely experience leaks.
This seems more like arenas than garbage collection. Arenas are used fairly extensively in high performance C and C++ code (for example in games).