• Heikki Linnakangas's avatar
    Change the logic to decide when to delete old WAL segments, so that it · e57cd7f0
    Heikki Linnakangas authored
    doesn't take into account how far the WAL senders are. This way a hung
    WAL sender doesn't prevent old WAL segments from being recycled/removed
    in the primary, ultimately causing the disk to fill up. Instead add
    standby_keep_segments setting to control how many old WAL segments are
    kept in the primary. This also makes it more reliable to use streaming
    replication without WAL archiving, assuming that you set
    standby_keep_segments high enough.
    e57cd7f0
postgresql.conf.sample 17.1 KB