In my PostgreSQL pg_wal directory total wal segments sum about 200GB where max_wal_size 8GB.
We archived WAL file at desired location using archive_command but wal file not removed from pg_wal directory, I am not sure why?
I have 3 node DB cluster maintained by pgpool. Where node3 is down due to some reason. Because of that replication slot is not active. Here node1 is primary and node2 is standby node which is working fine and replication slot active of that.
Basically I want to know why PostgreSQL is not removing those WAL file form pg_wal directory? And how to solve this?
I am assuming that, it is holding those WAL file because of that replication slot of node3 which is not active.
If I am right then, what should I do in this case ? Should I delete that replication slot of node3 to solve this issue.
Note: I don't want to recover that node3 right now.