Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
I would like to know if Postgresql has implemented a function that runs automatically and returns me if a table is created in the database independently of the schema.
version : Postgresql 9.4
Thanks!
pg_class
pg_tables
You could query information_schema.tables, but that will only give you information about tables on which you have privileges:
information_schema.tables
SELECT EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'guppy');
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
pg_classorpg_tables