How to check if a table exists in a given schema (PgSQL)
stackoverflow.com