Skip to content

Commit f4790b6

Browse files
committed
write dbOid in write_backup_filelist()
1 parent 5ae396f commit f4790b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/catalog.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,13 +744,15 @@ write_backup_filelist(pgBackup *backup, parray *files, const char *root,
744744
len = sprintf(line, "{\"path\":\"%s\", \"size\":\"" INT64_FORMAT "\", "
745745
"\"mode\":\"%u\", \"is_datafile\":\"%u\", "
746746
"\"is_cfs\":\"%u\", \"crc\":\"%u\", "
747-
"\"compress_alg\":\"%s\", \"external_dir_num\":\"%d\"",
747+
"\"compress_alg\":\"%s\", \"external_dir_num\":\"%d\", "
748+
"\"dbOid\":\"%u\"",
748749
path, file->write_size, file->mode,
749750
file->is_datafile ? 1 : 0,
750751
file->is_cfs ? 1 : 0,
751752
file->crc,
752753
deparse_compress_alg(file->compress_alg),
753-
file->external_dir_num);
754+
file->external_dir_num,
755+
file->dbOid);
754756

755757
if (file->is_datafile)
756758
len += sprintf(line+len, ",\"segno\":\"%d\"", file->segno);

0 commit comments

Comments
 (0)