]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-constraint-table-usage.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-constraint-table-usage.txt
1
2 35.19. constraint_table_usage #
3
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.
12
13    Table 35.17. constraint_table_usage Columns
14
15    Column Type
16
17    Description
18
19    table_catalog sql_identifier
20
21    Name of the database that contains the table that is used by some
22    constraint (always the current database)
23
24    table_schema sql_identifier
25
26    Name of the schema that contains the table that is used by some
27    constraint
28
29    table_name sql_identifier
30
31    Name of the table that is used by some constraint
32
33    constraint_catalog sql_identifier
34
35    Name of the database that contains the constraint (always the current
36    database)
37
38    constraint_schema sql_identifier
39
40    Name of the schema that contains the constraint
41
42    constraint_name sql_identifier
43
44    Name of the constraint