A PostgreSQL extension for diagnosing memory issues in other extensions — tracks allocations, surfaces leaks, and inspects memory contexts inside the running backend.
PostgreSQLCExtensionMemory
Features
Tracks per-extension memory allocations inside the PostgreSQL backend
Surfaces leaked allocations originating from extension code
Inspects PostgreSQL memory contexts at runtime
Loaded as a standard PostgreSQL extension written in C
Aids in diagnosing memory issues in third-party extensions