In PostgreSQL I try to check if table exist:
SELECT EXISTS (SELECT * FROM table_name);
And it throwing an error. How can I check if table already exists so the result will be boolean? Because currently I can achieve the same with try-catch (enters to catch if not exist) instead of if-else on the result...
Thanks,