File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,13 @@ CREATE TABLE at_jobs_submitted(
25
25
canceled boolean default false,
26
26
submit_time timestamp with time zone default now()
27
27
);
28
- CREATE INDEX at_jobs_submitted_node_at_idx on at_jobs_submitted (node, at );
28
+ CREATE INDEX ON at_jobs_submitted(at,submit_time );
29
29
30
30
CREATE TABLE at_jobs_process (
31
31
start_time timestamp with time zone default now()
32
32
) INHERITS (at_jobs_submitted);
33
33
34
+ ALTER TABLE at_jobs_process ADD primary key (id);
34
35
CREATE INDEX at_jobs_process_node_at_idx on at_jobs_process (node, at);
35
36
36
37
CREATE TABLE at_jobs_done (
@@ -39,6 +40,7 @@ CREATE TABLE at_jobs_done(
39
40
done_time timestamp with time zone default now()
40
41
) INHERITS (at_jobs_process);
41
42
43
+ ALTER TABLE at_jobs_done ADD primary key (id);
42
44
CREATE INDEX at_jobs_done_node_at_idx on at_jobs_done (node, at);
43
45
44
46
CREATE TABLE cron (
You can’t perform that action at this time.
0 commit comments