2 35.19. constraint_table_usage #
4 The view constraint_table_usage identifies all tables in the current
5 database that are used by some constraint and are owned by a currently
6 enabled role. (This is different from the view table_constraints, which
7 identifies all table constraints along with the table they are defined
8 on.) For a foreign key constraint, this view identifies the table that
9 the foreign key references. For a unique or primary key constraint,
10 this view simply identifies the table the constraint belongs to. Check
11 constraints and not-null constraints are not included in this view.
13 Table 35.17. constraint_table_usage Columns
19 table_catalog sql_identifier
21 Name of the database that contains the table that is used by some
22 constraint (always the current database)
24 table_schema sql_identifier
26 Name of the schema that contains the table that is used by some
29 table_name sql_identifier
31 Name of the table that is used by some constraint
33 constraint_catalog sql_identifier
35 Name of the database that contains the constraint (always the current
38 constraint_schema sql_identifier
40 Name of the schema that contains the constraint
42 constraint_name sql_identifier
44 Name of the constraint