• Peter Eisentraut's avatar
    Improve memory use in logical replication apply · 489b96e8
    Peter Eisentraut authored
    Previously, the memory used by the logical replication apply worker for
    processing messages would never be freed, so that could end up using a
    lot of memory.  To improve that, change the existing ApplyContext memory
    context to ApplyMessageContext and reset that after every
    message (similar to MessageContext used elsewhere).  For consistency of
    naming, rename the ApplyCacheContext to ApplyContext.
    
    Author: Stas Kelvich <s.kelvich@postgrespro.ru>
    489b96e8
worker.c 40.5 KB