query.stored_query
|
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.stored_query_id_seq'::regclass) |
|
type |
|
No |
||
use_all |
|
No |
false |
|
use_distinct |
|
No |
false |
|
from_clause FK |
|
Yes |
||
where_clause FK |
|
Yes |
||
having_clause FK |
|
Yes |
||
limit_count FK |
|
Yes |
||
offset_count FK |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
|
|
NO ACTION |
NO ACTION |
DEFERRED |
|
Check Constraints
-
query_type:CHECK type = ANY (ARRAY['SELECT'::text, 'UNION'::text, 'INTERSECT'::text, 'EXCEPT'::text])
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
Referenced By
The following tables have foreign keys pointing to query.stored_query (7 referencing table(s)):
| Table | Referencing Column(s) | Referenced Column(s) | Constraint |
|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|