Why Is My pg_xlog Directory So Big?
I had streaming replication set up using a replication slot, but the slave did not use the slot.
Writing

primary_slot_name = 'replication_slot_1'


in /var/lib/postgresql/9.5/main/recovery.conf on the slave solved the problem.