Maybe the "set n_rows [ns_pg ntuples $db]" doesn't work correctly...
Kinda embarrassing to still run on 3.2.5 😟
Thanks