• Andres Freund's avatar
    Properly remove ephemeral replication slots after a crash restart. · 93a028f5
    Andres Freund authored
    Ephemeral slots - slots that shouldn't survive database restarts -
    weren't properly cleaned up after a immediate/crash restart. They were
    ignored in the sense that they weren't restored into memory and thus
    didn't cause unwanted resource retention; but they prevented a new
    slot with the same name from being created.
    
    Now ephemeral slots are fully removed during startup.
    
    Backpatch to 9.4 where replication slots where added.
    93a028f5
slot.c 32.7 KB