51.90. pg_tables

pg_tablesビューはデータベース内のそれぞれのテーブルに関する有用な情報へのアクセスを提供します。

表51.91 pg_tablesの列

列 型

説明

schemaname name (references pg_namespace.nspname)

テーブルがあるスキーマの名前

tablename name (references pg_class.relname)

テーブルの名前

tableowner name (references pg_authid.rolname)

テーブルの所有者

tablespace name (references pg_tablespace.spcname)

テーブルを含むテーブル空間の名前(データベースのデフォルトの場合はNULL)

hasindexes bool (references pg_class.relhasindex)

テーブルがインデックスを持っている(もしくは最近まで持っていた)なら真

hasrules bool (references pg_class.relhasrules)

テーブルにルールがある(もしくは以前あった)時は真

hastriggers bool (references pg_class.relhastriggers)

テーブルにトリガがある(もしくは以前あった)時は真

rowsecurity bool (references pg_class.relrowsecurity)

テーブルの行セキュリティが有効なら真