Seems to be working also with a single index, like this:
CREATE UNIQUE INDEX lab_tests_groups_siui_uni_c ON lab_tests_groups_siui(id_lab_tests_siui, id_lab_tests_groups, valid_from, coalesce(id_lab_sample_types, 0));
------ Original Message ------
From: "Pavel Stehule" <pavel.stehule@xxxxxxxxx>
To: "Sterpu Victor" <victor@xxxxxxxx>
Cc: "Marc Mamin" <M.Mamin@xxxxxxxxxxxx>; "PostgreSQL General" <pgsql-general@xxxxxxxxxxxxxx>; "Andreas Kretschmer" <akretschmer@xxxxxxxxxxxxx>; "Scott Marlowe" <scott.marlowe@xxxxxxxxx>
Sent: 12/21/2015 8:44:14 AM
Subject: Re: Unique index problem
DISCLAIMER: |