From 69d7eefe3e86f3741e48be09b74172e4cecb7eb8 Mon Sep 17 00:00:00 2001 From: "Eric B. Ridge" Date: Fri, 18 Sep 2026 15:16:03 +0000 Subject: [PATCH] Fix byte progress catalog query --- src/bin/pgcopydb/catalog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, "