query.from_relation
|
Cascading Deletes: Deleting rows from this table will cascade to: query.from_relation. |
|
Deferrable Constraints: The following FK constraints are deferrable — they are checked at transaction end, not statement end: |
Columns
| Column | Type | Nullable | Default | Notes |
|---|---|---|---|---|
id PK |
|
No |
nextval('query.from_relation_id_seq'::regclass) |
|
type |
|
No |
||
table_name |
|
Yes |
||
class_name |
|
Yes |
||
subquery FK |
|
Yes |
||
function_call FK |
|
Yes |
||
table_alias |
|
Yes |
||
parent_relation FK |
|
Yes |
||
seq_no |
|
No |
1 |
|
join_type |
|
Yes |
||
on_clause FK |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
No |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
CASCADE |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
No |
|
Check Constraints
-
good_join_type:CHECK -
join_or_core:CHECK ((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)) -
relation_type:CHECK type = ANY (ARRAY['RELATION'::text, 'SUBQUERY'::text, 'FUNCTION'::text])
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
Referenced By
The following tables have foreign keys pointing to query.from_relation (3 referencing table(s)):
| Table | Referencing Column(s) | Referenced Column(s) | Constraint |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|