0

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!

1
  • 1
    There is no built-in function. You will have to use a SELECT statement checking pg_class or pg_tables Commented May 11, 2022 at 11:34

1 Answer 1

1

You could query information_schema.tables, but that will only give you information about tables on which you have privileges:

SELECT EXISTS (SELECT 1
               FROM information_schema.tables
               WHERE table_name = 'guppy');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

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.

Ask question

Explore related questions

See similar questions with these tags.