Skip to content

Commit 1997a71

Browse files
deadtricksterhomper
authored andcommitted
Exclude orioledb_data from pg_checksums walk, otherwise "Invalid segment number 0" error happens
1 parent d48d155 commit 1997a71

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/bin/pg_checksums/pg_checksums.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,11 @@ scan_directory(const char *basedir, const char *subdir, bool sizeonly)
305305
struct dirent *de;
306306

307307
snprintf(path, sizeof(path), "%s/%s", basedir, subdir);
308+
309+
/* OrioleDB data isn't pg_checksums' format; see orioledb_checksums. */
310+
if (strcmp(subdir, "orioledb_data") == 0)
311+
return 0;
312+
308313
dir = opendir(path);
309314
if (!dir)
310315
pg_fatal("could not open directory \"%s\": %m", path);

0 commit comments

Comments
 (0)