]> begriffs open source - ai-pg/blob - full-docs/txt/infoschema-table-constraints.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / infoschema-table-constraints.txt
1
2 35.52. table_constraints #
3
4    The view table_constraints contains all constraints belonging to tables
5    that the current user owns or has some privilege other than SELECT on.
6
7    Table 35.50. table_constraints Columns
8
9    Column Type
10
11    Description
12
13    constraint_catalog sql_identifier
14
15    Name of the database that contains the constraint (always the current
16    database)
17
18    constraint_schema sql_identifier
19
20    Name of the schema that contains the constraint
21
22    constraint_name sql_identifier
23
24    Name of the constraint
25
26    table_catalog sql_identifier
27
28    Name of the database that contains the table (always the current
29    database)
30
31    table_schema sql_identifier
32
33    Name of the schema that contains the table
34
35    table_name sql_identifier
36
37    Name of the table
38
39    constraint_type character_data
40
41    Type of the constraint: CHECK (includes not-null constraints), FOREIGN
42    KEY, PRIMARY KEY, or UNIQUE
43
44    is_deferrable yes_or_no
45
46    YES if the constraint is deferrable, NO if not
47
48    initially_deferred yes_or_no
49
50    YES if the constraint is deferrable and initially deferred, NO if not
51
52    enforced yes_or_no
53
54    YES if the constraint is enforced, NO if not
55
56    nulls_distinct yes_or_no
57
58    If the constraint is a unique constraint, then YES if the constraint
59    treats nulls as distinct or NO if it treats nulls as not distinct,
60    otherwise null for other types of constraints.