I have a table with a partial unique constraint where a costumer_id can only have one is_primary flag set to True.
The behavior that I would like to achieve is: when