Skip to content

Commit ec6d647

Browse files
author
Vladimir Ershov
committed
indexes add
1 parent 77d2473 commit ec6d647

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pgpro_scheduler--2.0.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,13 @@ CREATE TABLE at_jobs_submitted(
2525
canceled boolean default false,
2626
submit_time timestamp with time zone default now()
2727
);
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);
2929

3030
CREATE TABLE at_jobs_process(
3131
start_time timestamp with time zone default now()
3232
) INHERITS (at_jobs_submitted);
3333

34+
ALTER TABLE at_jobs_process ADD primary key (id);
3435
CREATE INDEX at_jobs_process_node_at_idx on at_jobs_process (node, at);
3536

3637
CREATE TABLE at_jobs_done(
@@ -39,6 +40,7 @@ CREATE TABLE at_jobs_done(
3940
done_time timestamp with time zone default now()
4041
) INHERITS (at_jobs_process);
4142

43+
ALTER TABLE at_jobs_done ADD primary key (id);
4244
CREATE INDEX at_jobs_done_node_at_idx on at_jobs_done (node, at);
4345

4446
CREATE TABLE cron(

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy