pg_ls_archive_statusdir () → setof record ( name text, size bigint, modification timestamp with time zone )Returns the name, size, and last modification time (mtime) of each ordinary file in the server's WAL archive status directory (
pg_wal/archive_status). Filenames beginning with a dot, directories, and other special files are excluded.