2

I'm pretty new to postgres and I know that a \dt will show up the tables, `dtIs` will show tables and indexes but I'm looking for how to show/find hidden tables if any?

1 Answer 1

3

To find tables in any schema of a database, you could check the catalog table pg_class

SELECT oid::regclass AS table_name
FROM   pg_class
WHERE  relname = 'my_table_name'
AND    relkind = 'r';

Note, this includes "invisible" tables, that are not in your search_path, and even temporary tables from other sessions that you cannot access at all. There are no other "hidden" tables.

Tables in other databases of the same cluster are not included.

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.