What happens is that I am trying to see if a table exists in postgres or not, I managed to make the query, the problem is that it is consulting if it exists in the whole postgres scheme and not in the base on which I am executing the query and it brings me more records since I have other databases that have tables with the same name. I would like you to help me to know what I need in the query. Thank you in advance.
SELECT table_name FROM information_schema.columns WHERE table_name='pais'