You should be able to just run select * from information_schema.tables to get a listing of every table being managed by Postgres for a particular database.
You can also add a where table_schema = 'information_schema' to see just the tables in the information schema.
You should be able to just run select * from information_schema.tables to get a listing of every table being managed by Postgres for a particular database.
You can also add a where table_schema = 'information_schema' to see just the tables in the information schema.
For listing your tables use:
SELECT table_name FROM information_schema.tables WHERE table_schema='public'
It will only list tables that you create.
So I'm new to Postgres and I want to have a look at how postgres stores schema data since I am building a database manager like pgAdmin as a hobby project. My understanding is that all the schema data like names of tables and columns, column types, etc is stored in the `information_schema` table, however I cannot find the `information_schema` table anywhere in pgAdmin.
Edit: sorry I meant tables named eg `information_schema.tables`, not a table named `information_schema`
Edit 2: Having read more about Postgres, I think "metadata" is a more accurate word for what I was looking for than "schema" which is the language used by SQLite which I was using previously.