diff options
Diffstat (limited to 'src/backend/backup/backup_manifest.c')
-rw-r--r-- | src/backend/backup/backup_manifest.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/backup/backup_manifest.c b/src/backend/backup/backup_manifest.c index cee62165246..aeed362a9ad 100644 --- a/src/backend/backup/backup_manifest.c +++ b/src/backend/backup/backup_manifest.c @@ -97,7 +97,7 @@ FreeBackupManifest(backup_manifest_info *manifest) * Add an entry to the backup manifest for a file. */ void -AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid, +AddFileToBackupManifest(backup_manifest_info *manifest, Oid spcoid, const char *pathname, size_t size, pg_time_t mtime, pg_checksum_context *checksum_ctx) { @@ -114,9 +114,9 @@ AddFileToBackupManifest(backup_manifest_info *manifest, const char *spcoid, * pathname relative to the data directory (ignoring the intermediate * symlink traversal). */ - if (spcoid != NULL) + if (OidIsValid(spcoid)) { - snprintf(pathbuf, sizeof(pathbuf), "pg_tblspc/%s/%s", spcoid, + snprintf(pathbuf, sizeof(pathbuf), "pg_tblspc/%u/%s", spcoid, pathname); pathname = pathbuf; } |