jOOQ 3.1.0
The actual table is:
CREATE SEQUENCE task_seq;
CREATE TABLE task (
task_id int4 PRIMARY KEY DEFAULT nextval('task_seq'),
type varchar(16) NOT NULL CHECK (type IN ('check', 'parse', 'index', 'merge', 'score', 'clear', 'store', 'stats')),
status varchar(16) NOT NULL CHECK (status IN ('wait', 'exec', 'done', 'fail', 'stop')),
parent_id int4 REFERENCES task (task_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
batch_id int4 REFERENCES batch (batch_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
search_id int4 REFERENCES search (search_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
input json,
submitted timestamptz NOT NULL,
initiated timestamptz,
completed timestamptz
);
ALTER SEQUENCE litms.task_seq OWNED BY litms.task.task_id;
CREATE INDEX task_queue ON litms.task (type, submitted)
WHERE status = 'wait';
'input' is the forced field. I get the same behavior with other columns and types, too.
Thanks,
Dmitri