From 6f8dbd46c60df4a110954da83c2f57a2a9221dec Mon Sep 17 00:00:00 2001 From: Iliia Khaprov Date: Wed, 22 Jul 2026 18:52:06 +0200 Subject: [PATCH] Exclude orioledb_data from pg_checksums walk, otherwise "Invalid segment number 0" error happens --- src/bin/pg_checksums/pg_checksums.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c index 9e6fd435f60..9357cac0463 100644 --- a/src/bin/pg_checksums/pg_checksums.c +++ b/src/bin/pg_checksums/pg_checksums.c @@ -305,6 +305,11 @@ scan_directory(const char *basedir, const char *subdir, bool sizeonly) struct dirent *de; snprintf(path, sizeof(path), "%s/%s", basedir, subdir); + + /* OrioleDB data isn't pg_checksums' format; see orioledb_checksums. */ + if (strcmp(subdir, "orioledb_data") == 0) + return 0; + dir = opendir(path); if (!dir) pg_fatal("could not open directory \"%s\": %m", path);