On Wed, Jan 30, 2019 at 3:58 PM rammohan ganapavarapu <rammohanganap@xxxxxxxxx> wrote: > I am trying to understand why postgresql not removing WAL logs under pg_xlog in 9.6, below are my settings > > wal_keep_segments=500 > > pg_xlog/|wc -l > 506 You told PostgreSQL to keep 500 files and it has (the number kept apparently fluctuates a little bit). https://www.postgresql.org/docs/11/wal-configuration.html David J.