Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| id | serial | 10 | √ | nextval('query.from_relation_id_seq'::regclass) |
|
|
|||||||||||
| type | text | 2147483647 | null |
|
|
||||||||||||
| table_name | text | 2147483647 | √ | null |
|
|
|||||||||||
| class_name | text | 2147483647 | √ | null |
|
|
|||||||||||
| subquery | int4 | 10 | √ | null |
|
|
|||||||||||
| function_call | int4 | 10 | √ | null |
|
|
|||||||||||
| table_alias | text | 2147483647 | √ | null |
|
|
|||||||||||
| parent_relation | int4 | 10 | √ | null |
|
|
|||||||||||
| seq_no | int4 | 10 | 1 |
|
|
||||||||||||
| join_type | text | 2147483647 | √ | null |
|
|
|||||||||||
| on_clause | int4 | 10 | √ | null |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| from_relation_pkey | Primary key | Asc | id |
| from_parent_seq | Must be unique | Asc/Asc | parent_relation + seq_no |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| relation_type | ((type = ANY (ARRAY['RELATION'::text, 'SUBQUERY'::text, 'FUNCTION'::text]))) |
| good_join_type | (((join_type IS NULL) OR (join_type = ANY (ARRAY['INNER'::text, 'LEFT'::text, 'RIGHT'::text, 'FULL'::text])))) |
| join_or_core | ((((parent_relation IS NULL) AND (join_type IS NULL) AND (on_clause IS NULL)) OR ((parent_relation IS NOT NULL) AND (join_type IS NOT NULL) AND (on_clause IS NOT NULL)))) |

