Open
Description
check_archive_ready() calls check_wal_files()
check_postgres/check_postgres.pl
Line 3826 in fd9702c
That's fine on PostgreSQL < 10, but on 10+ check_wal_files() calls pg_ls_wal_dir(), which lists only files in the wal dir, but not it's subdirectories.
check_postgres/check_postgres.pl
Line 8700 in fd9702c
Thus the WHERE clause will never be true, and COUNT() always returns 0.
I've currently no idea how to fix this in an elegant way: of course one could fall back to the "old" query, but that requires SUPERUSER privileges for pg_ls_dir() (or GRANTs on that, or a wrapper...).
Metadata
Metadata
Assignees
Labels
No labels