From ec77fd71c9c7e0aacdd1b62d45e71074f0565dff Mon Sep 17 00:00:00 2001 From: Iliia Khaprov Date: Wed, 22 Jul 2026 18:52:09 +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 f20be82862a..84090911ce4 100644 --- a/src/bin/pg_checksums/pg_checksums.c +++ b/src/bin/pg_checksums/pg_checksums.c @@ -304,6 +304,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);