added an extra check for table_catalog to handle slight variations in postgresql
Merge pull request #1332 from rossriley/postgresql-tablecheck

Postgresql Table Check