PostgreSQL/MySQLで、テーブル一覧を取得する

PostgreSQL

psqlでログインして、システムテーブル pg_tables を読む。
システムテーブルは pg_xxxx という名前なので、それを除けて読む。
# select * from pg_tables where not tablename like 'pg%' order by tablename;
psqlでログインして、\dt。
ありがとうございます>id:rhosoiさん

# \dt
MySQL

mysqlでログインして show tables する。

> show tables;