I'm trying to implement an idempotent insert, this query looks good for this task
insert into test_table
select *
from (
values (1, 2, 3, 4),
(3, 4, 5, 6),
(1, 2, 3, 4),
(3, 4, 5, 6)
) as data(a, b, c, d)
where not exists(select 1
from test_table
where test_table.a = data.a
and test_table.b = data.b
and test_table.c = data.c);
Please help translate this query to jOOQ DSL
I used Greenplum database and is not supported ON CONFLICT syntax