I run postgres server (10.6) on my pc just for some custom programs. Problem is every time I restore a backup file of 600mb - the pg_wal directory increases in size for 600mb. Is there a way to easily restore + get rid of the wal files?
I have read about pg_archivecleanup utility but I don't think it helps in my case.
EDIT: Alternatively, is it possible at all to restore without recreating wal files as I don't need them. What will be the config entries for this.