How to check if a table exists in a given schema How to check if a table exists in a given schema postgresql postgresql