You can add a constraint in two parts with PostgreSQL: one for new data being added (not valid) and then later you can do `alter table ... validate constraint` to ensure that historical data is validated.
I would have loved this in MySQL for making fields UNIQUE, something that was extremely toil-filled when I worked at Shopify.
Anyway, I've added those 9 as NOT VALID so that we don't add _new_ invalid data, to give me a chance to clean up.