]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-constraint-column-usage.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-constraint-column-usage.txt
1
2 35.18. constraint_column_usage #
3
4    The view constraint_column_usage identifies all columns in the current
5    database that are used by some constraint. Only those columns are shown
6    that are contained in a table owned by a currently enabled role. For a
7    check constraint, this view identifies the columns that are used in the
8    check expression. For a not-null constraint, this view identifies the
9    column that the constraint is defined on. For a foreign key constraint,
10    this view identifies the columns that the foreign key references. For a
11    unique or primary key constraint, this view identifies the constrained
12    columns.
13
14    Table 35.16. constraint_column_usage Columns
15
16    Column Type
17
18    Description
19
20    table_catalog sql_identifier
21
22    Name of the database that contains the table that contains the column
23    that is used by some constraint (always the current database)
24
25    table_schema sql_identifier
26
27    Name of the schema that contains the table that contains the column
28    that is used by some constraint
29
30    table_name sql_identifier
31
32    Name of the table that contains the column that is used by some
33    constraint
34
35    column_name sql_identifier
36
37    Name of the column that is used by some constraint
38
39    constraint_catalog sql_identifier
40
41    Name of the database that contains the constraint (always the current
42    database)
43
44    constraint_schema sql_identifier
45
46    Name of the schema that contains the constraint
47
48    constraint_name sql_identifier
49
50    Name of the constraint