I have postgres 10 where pg_wal is getting full. I have files pg_wal directory from Dec'2020. I have enabled "archive" but I was getting archiver error and my application stopped working. Since this issue is on Production, I have disabled the archive.
Is it safe to remove old files from pg_wal which is dated on Dec'2020 and Jan'2021?
I can see this:
postgres=# SELECT * FROM pg_replication_slots;
slot_name | plugin | slot_type | datoid | database | temporary | active | active_pid | xmin | catalog_xmin | restart_lsn | c onfirmed_flush_lsn
-----------+--------+-----------+--------+----------+-----------+--------+------------+------+--------------+--------------+---------------------
m9t0179g | | physical | | | f | f | | | | 50/B780000 |
m9t | | physical | | | f | f | | | | 3B0/EB000920 |