Static analyzer reveals a typo: https://github.com/dimitri/pgcopydb/blob/c1e07da3d257d0d3a1fc321f3c7e1a4063eed6bd/src/bin/pgcopydb/compare.c#L1010 In function 'compare_fetch_schemas': Value 'dbs' might be 'dbt'