Notes
Decision, measurement, what breaks
Short notes on rules I keep because a measurement made me. Each one says what was decided, what was measured, and what breaks if it is wrong.
September 11, 2026. 4 minute read.
INSERT RETURNING under a restrictive row-level security policy
A policy whose check reads the table cannot see the row the same command inserted, so insert with a client-minted id and read it back in a second command.