バージョンごとのドキュメント一覧

54.30. pg_tables #

The view <structname>pg_tables</structname> provides access to useful information about each table in the database. pg_tablesビューはデータベース内のそれぞれのテーブルに関する有用な情報へのアクセスを提供します。

表54.30 pg_tablesの列

<title><structname>pg_tables</structname> Columns</title>

Column Type 列 型

Description 説明

schemaname name (references <link linkend="catalog-pg-namespace"><structname>pg_namespace</structname></link>.<structfield>nspname</structfield>) (参照先 pg_namespace.nspname

Name of schema containing table テーブルがあるスキーマの名前

tablename name (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relname</structfield>) (参照先 pg_class.relname

Name of table テーブルの名前

tableowner name (references <link linkend="catalog-pg-authid"><structname>pg_authid</structname></link>.<structfield>rolname</structfield>) (参照先 pg_authid.rolname

Name of table's owner テーブルの所有者

tablespace name (references <link linkend="catalog-pg-tablespace"><structname>pg_tablespace</structname></link>.<structfield>spcname</structfield>) (参照先 pg_tablespace.spcname

Name of tablespace containing table (null if default for database) テーブルを含むテーブル空間の名前(データベースのデフォルトの場合はNULL)

hasindexes bool (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relhasindex</structfield>) (参照先 pg_class.relhasindex

True if table has (or recently had) any indexes trueの場合は、テーブルがインデックスを持っている(もしくは最近まで持っていた)

hasrules bool (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relhasrules</structfield>) (参照先 pg_class.relhasrules

True if table has (or once had) rules trueの場合は、テーブルにルールがある(もしくは以前あった)

hastriggers bool (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relhastriggers</structfield>) (参照先 pg_class.relhastriggers

True if table has (or once had) triggers trueの場合は、テーブルにトリガがある(もしくは以前あった)

rowsecurity bool (references <link linkend="catalog-pg-class"><structname>pg_class</structname></link>.<structfield>relrowsecurity</structfield>) (参照先 pg_class.relrowsecurity

True if row security is enabled on the table trueの場合は、テーブルの行セキュリティが有効