Use pg_walfile_name(); i.e. enso=# select pg_switch_wal(); pg_switch_wal --------------- 29CF/4D14B48 (1 row) enso=# select pg_walfile_name('29CF/4D14B48'); pg_walfile_name -------------------------- 00000001000029CF00000000 (1 row) enso=# select pg_walfile_name(pg_switch_wal()); pg_walfile_name -------------------------- 00000001000029CF00000001 (1 row) |