-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Description
check_archive_ready() calls check_wal_files()
check_postgres/check_postgres.pl
Line 3826 in fd9702c
return check_wal_files('/archive_status', '.ready', 10, 15); |
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
qq{SELECT count(*) AS count FROM pg_ls_waldir() WHERE name ~ E'^[0-9A-F]{24}$extrabit\$'}; ## no critic (RequireInterpolationOfMetachars) |
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...).
ChristophKaser
Metadata
Metadata
Assignees
Labels
No labels