@@ -815,8 +815,11 @@ do_backup(time_t start_time, bool no_validate,
815
815
pgBackupValidate (& current , NULL );
816
816
817
817
/* Notify user about backup size */
818
- pretty_size (current .data_bytes , pretty_data_bytes , lengthof (pretty_data_bytes ));
819
- elog (INFO , "Backup %s real size: %s" , base36enc (current .start_time ), pretty_data_bytes );
818
+ if (current .stream )
819
+ pretty_size (current .data_bytes + current .wal_bytes , pretty_data_bytes , lengthof (pretty_data_bytes ));
820
+ else
821
+ pretty_size (current .data_bytes , pretty_data_bytes , lengthof (pretty_data_bytes ));
822
+ elog (INFO , "Backup %s resident size: %s" , base36enc (current .start_time ), pretty_data_bytes );
820
823
821
824
if (current .status == BACKUP_STATUS_OK ||
822
825
current .status == BACKUP_STATUS_DONE )
@@ -1828,6 +1831,9 @@ pg_stop_backup(pgBackup *backup, PGconn *pg_startbackup_conn,
1828
1831
1829
1832
backup_in_progress = false;
1830
1833
1834
+ // char *target_lsn = "2/F578A000";
1835
+ // XLogDataFromLSN(target_lsn, &lsn_hi, &lsn_lo);
1836
+
1831
1837
/* Extract timeline and LSN from results of pg_stop_backup() */
1832
1838
XLogDataFromLSN (PQgetvalue (res , 0 , 2 ), & lsn_hi , & lsn_lo );
1833
1839
/* Calculate LSN */
0 commit comments