Answer the question
In order to leave comments, you need to log in
Get a list of tables of a particular postgres database?
There are several databases, you need to display all tables for a specific database (by name). Please help me make a request.
Answer the question
In order to leave comments, you need to log in
This query will list the table names (as well as the schema names where they are located) for the current database.
SELECT n.nspname, c.relname
FROM pg_class c JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind = 'r' AND n.nspname NOT IN('pg_catalog', 'information_schema');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question