PostgreSQLで、データベース上に格納されているテーブル情報の一覧は
以下のコマンドで取得可能である
# select * from pg_tables;
この場合、システムが作成したテーブルも表示されるので絞込みが必要となる
# select * from pg_tables where tablename not like 'pg_%' and schemaname not like 'infomation_%';
取得される列名は、以下の通り
・schemaname
・tablename
・tableowner
・hasindexes
・hasrules
・hastriggers
以下のコマンドで取得可能である
# select * from pg_tables;
この場合、システムが作成したテーブルも表示されるので絞込みが必要となる
# select * from pg_tables where tablename not like 'pg_%' and schemaname not like 'infomation_%';
取得される列名は、以下の通り
・schemaname
・tablename
・tableowner
・hasindexes
・hasrules
・hastriggers