action.ingest_queue_entry
|
Cascading Deletes: Deleting rows from this table will cascade to: action.ingest_queue. |
|
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('action.ingest_queue_entry_id_seq'::regclass) |
|
record |
|
No |
||
record_type |
|
No |
||
action |
|
No |
||
run_at |
|
No |
now() |
|
state_data |
|
No |
''::text |
|
queue FK |
|
Yes |
||
override_by FK |
|
Yes |
||
ingest_time |
|
Yes |
||
fail_time |
|
Yes |
Foreign Keys
| Column(s) | References | On Delete | On Update | Deferrable | Constraint |
|---|---|---|---|---|---|
|
SET NULL |
CASCADE |
DEFERRED |
|
|
|
CASCADE |
CASCADE |
DEFERRED |
|
Indexes
| Index | Method | Definition |
|---|---|---|
|
btree |
|
|
btree |
|
|
btree |
|
Triggers
| Trigger | Timing | Event | Level | Function |
|---|---|---|---|---|
|
AFTER |
UPDATE |
ROW |
Trigger Bodies
complete_duplicated_entries_trigger
Function: action.complete_duplicated_entries()
Timing: AFTER UPDATE ROW
BEGIN
IF NEW.ingest_time IS NOT NULL THEN
UPDATE action.ingest_queue_entry SET ingest_time = NEW.ingest_time WHERE override_by = NEW.id;
END IF;
RETURN NULL;
END;