Commit

a374c9c

I converted a 1,000,000-row json column to jsonb on a test PostgreSQL database. One row stopped it. I had planted a single webhook body with a \u0000 escape, which json stores without a word. The ALTER rewrote the table for 3.2 seconds, holding a lock that made plain SELECTs wait, then failed: unsupported Unicode escape sequence. jsonb refuses it. Nothing was converted. With that row gone it went through in 3.6 seconds, and another row changed silently: {"amount":10,"amount":12} came back as {"amount": 12}. Testing it is how I found that Schemity's impact analysis did not warn about either. From the next release it counts the rows jsonb will refuse before the lock is taken. #PostgreSQL https://schemity.com/blog/postgres-json-vs-jsonb/
schemity.comPostgreSQL json vs jsonb: Which to Use, and What Converting a Live Column Costs - SchemityOn PostgreSQL 18.3, jsonb read a field 6x faster and json refused GROUP BY and every index. What converting a live json column breaks, and how Schemity finds it first.

commit a374c9c