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

37.65. view_table_usage #

The view <literal>view_table_usage</literal> identifies all tables that are used in the query expression of a view (the <command>SELECT</command> statement that defines the view). A table is only included if that table is owned by a currently enabled role. view_table_usageビューは、ビューの問い合わせ式(ビューを定義するSELECT文)で使用されるすべてのテーブルを示します。 現在有効なロールがそのテーブルの所有者であるもののみが含まれます。

注記

System tables are not included. This should be fixed sometime. システムテーブルは含まれません。 これはいつか修正しなければなりません。

表37.63 view_table_usageの列

<title><structname>view_table_usage</structname> Columns</title>

Column Type 列 型

Description 説明

view_catalog sql_identifier

Name of the database that contains the view (always the current database) ビューを持つデータベースの名前です(常に現在のデータベースです)。

view_schema sql_identifier

Name of the schema that contains the view ビューを持つスキーマの名前です。

view_name sql_identifier

Name of the view ビューの名前です。

table_catalog sql_identifier

Name of the database that contains the table that is used by the view (always the current database) ビューで使用されるテーブルを持つデータベースの名前です (常に現在のデータベースです)。

table_schema sql_identifier

Name of the schema that contains the table that is used by the view ビューで使用されるテーブルを持つスキーマの名前です。

table_name sql_identifier

Name of the table that is used by the view ビューで使用されるテーブルの名前です。