fix table scan for pg migrations
Merge pull request #1861 from pogoapp/fix_pg_table_scan

fix table scan for pg migrations