Note this requires the json type on PostgreSQL, because oddly this type doesn’t have an equality operator, while jsonb does… Probably because json representations can differ only by their formatting (extra spaces, …). Anyway, with this model:
This query will fail:
With the following exception:
|