diff --git a/src/bin/pgcopydb/catalog.c b/src/bin/pgcopydb/catalog.c index 02b025f4d..c7e5f1db4 100644 --- a/src/bin/pgcopydb/catalog.c +++ b/src/bin/pgcopydb/catalog.c @@ -9535,7 +9535,7 @@ catalog_count_summary_done_fetch(SQLiteQuery *query) /* * catalog_count_bytes returns byte totals used by list progress to show - * transfer volume. total is the sum of source catalog sizes (s_table.bytes); + * transfer volume. total is the sum of source catalog sizes (s_table_size.bytes); * transferred is the sum of summary.bytes for all table rows — done rows * hold their final bytesTransmitted, in-progress rows hold the last value * flushed by the periodic stats hook (every ~5 s with PID-based jitter). @@ -9553,7 +9553,7 @@ catalog_count_bytes(DatabaseCatalog *catalog, CatalogBytesCounts *count) char *sql = "select " - " coalesce((select sum(bytes) from s_table), 0) as total, " + " coalesce((select sum(bytes) from s_table_size), 0) as total, " " coalesce((select sum(bytes) from summary" " where tableoid is not null and done_time_epoch is not null), 0)" " as done, "