I have request that is a very similar to this problem postgresql ON CONFLICT with multiple constraints with only difference that I need to do DO UPDATE instead of DO NOTHING