PostgreSQL stores its transaction logs in the following location

pg_wal folder of the data directory (Note: previous versions of PostgreSQL used a folder called pg_xlog – this folder was renamed in version 10 to increase the importance of the file within).

BY Best Interview Question ON 15 Apr 2020