The bug

I split a 3-column unique constraint into two partial unique indexes to support a new nullable column. The next day, every .upsert() against that table started failing with:

there is no unique or exclusion constraint matching the ON CONFLICT specification

Enter fullscreen mode

Exit fullscreen mode