#TIL Postgres JSONB does not support null bytes while JSON does
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…

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 103bbf9