[pgsql-jp: 38169] Re: システムカタログスキーマについて
Tomoaki Sato
sato @ sraoss.co.jp
2007年 3月 19日 (月) 01:31:50 JST
佐藤です。
> こんにちは。
>
> $psqlでデータベースに入って
> #\dnするとpublicスキーマの他にinformation_schema,pg_catalog,pg_toastとい
> うスキーマがあります。この中にもテーブルがあると思いますが、
> #\dとやってもpublicのテーブルしか見えません。どうやったら見れますか。
\d コマンドではパターンによってオブジェクト名を指定することができます。
例えば、information_schema スキーマに定義されたテーブルを一覧表示する
には以下のように \d コマンドを実行します。
=> \dt information_schema.*
List of relations
Schema | Name | Type | Owner
--------------------+-------------------------+-------+----------
information_schema | sql_features | table | postgres
information_schema | sql_implementation_info | table | postgres
information_schema | sql_languages | table | postgres
information_schema | sql_packages | table | postgres
information_schema | sql_sizing | table | postgres
information_schema | sql_sizing_profiles | table | postgres
(6 rows)
詳しくはマニュアルの psql に関する説明を読んでみてください。
http://www.postgresql.jp/document/pg823doc/html/app-psql.html
----
Tomoaki Sato <sato @ sraoss.co.jp>
SRA OSS, Inc. Japan
pgsql-jp メーリングリストの案内