Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Memory management Remove topic Memory management Clear all 15 posts RSS

2026

ClickHouse

Memory safety for Postgres extensions in C/C++

Case study 4 min +40 XP

Postgres's palloc/MemoryContext allocation and setjmp/longjmp-based error handling clash with C++ new/delete, destructors and exceptions: longjmp skips destructors (undefined behavior), exceptions bypass PG_CATCH, and an uncaught exception aborts the process and forces cluster-wide crash recovery.

2025

2023

The quest for software engineering knowledge.

Look:
Layout: