@@ -1069,7 +1069,7 @@ get_backup_filelist(pgBackup *backup, bool strict)
10691069char linked [MAXPGPATH ];
10701070char compress_alg_string [MAXPGPATH ];
10711071int64 write_size ,
1072- full_size ,
1072+ uncompressed_size ,
10731073mode ,/* bit length of mode_t depends on platforms */
10741074is_datafile ,
10751075is_cfs ,
@@ -1088,8 +1088,6 @@ get_backup_filelist(pgBackup *backup, bool strict)
10881088
10891089get_control_value_str (buf ,"path" ,path ,sizeof (path ),true);
10901090get_control_value_int64 (buf ,"size" ,& write_size , true);
1091- if (!get_control_value_int64 (buf ,"full_size" ,& full_size , false))
1092- full_size = write_size ;
10931091get_control_value_int64 (buf ,"mode" ,& mode , true);
10941092get_control_value_int64 (buf ,"is_datafile" ,& is_datafile , true);
10951093get_control_value_int64 (buf ,"is_cfs" ,& is_cfs , false);
@@ -1100,7 +1098,6 @@ get_backup_filelist(pgBackup *backup, bool strict)
11001098
11011099file = pgFileInit (path );
11021100file -> write_size = (int64 )write_size ;
1103- file -> uncompressed_size = full_size ;
11041101file -> mode = (mode_t )mode ;
11051102file -> is_datafile = is_datafile ? true : false;
11061103file -> is_cfs = is_cfs ? true : false;
@@ -1136,6 +1133,11 @@ get_backup_filelist(pgBackup *backup, bool strict)
11361133if (get_control_value_int64 (buf ,"hdr_size" ,& hdr_size , false))
11371134file -> hdr_size = (int )hdr_size ;
11381135
1136+ if (get_control_value_int64 (buf ,"full_size" ,& uncompressed_size , false))
1137+ file -> uncompressed_size = uncompressed_size ;
1138+ else
1139+ file -> uncompressed_size = write_size ;
1140+
11391141if (file -> external_dir_num == 0 )
11401142set_forkname (file );
11411143