In table:
CONSTRAINT unique_position UNIQUE (id,city,type)
CREATE UNIQUE INDEX unique_position_sat_null ON public."position" (id,city) where type is null
When we insert into a table with iBatis we'd like to use:
ON CONFLICT ON INDEX unique_position DO UPDATE SET
.....
As I understand we cannot use index in ON CONFLICT
in POSTGRES.
Are there any other options to handle this? Thanks.