Re: Function for listing archive_status directory

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: 'Christoph Moench-Tegeder' <cmt@burggraben.net>
Cc: "Iwata, Aya" <iwata.aya@jp.fujitsu.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2018-10-09T13:41:52Z
Lists: pgsql-hackers
On Tue, Oct 09, 2018 at 10:12:17AM +0200, 'Christoph Moench-Tegeder' wrote:
> Attached is the updated patch. I made sure the function's OID hadn't been
> taken otherwise, and it compiles and works in a quick check.

Committed, after some slight adjustments.  Files in
pg_wal/archive_status/ have normally a size of 0 so this field does not
usually matter, but removing it complicates pg_ls_dir_files for no real
gain so I kept it.
--
Michael

Commits

  1. Add pg_ls_archive_statusdir function