PostgreSQL では、\d コマンドを実行すると、テーブルとそのテーブル タイプが一覧表示されます。現在、外部データ ラッパーを使用して作成したすべての外部テーブルを一覧表示しようとしています。これらのテーブルを一覧表示するクエリは何ですか?
質問する
16734 次
4 に答える
13
According to the manual \dE[S+]
should do it.
http://www.postgresql.org/docs/current/static/app-psql.html
To see the query behind this, start psql with the -e
("echo queries") option.
Or use the information_schema.tables
view: http://www.postgresql.org/docs/current/static/infoschema-tables.html
The table_type
column will contain FOREIGN TABLE
for those tables.
于 2012-12-16T15:22:05.977 に答える