Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/bin/pgcopydb/catalog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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, "
Expand Down
Loading