mirror of
https://github.com/outline/outline.git
synced 2026-11-25 15:15:15 +03:00
FOR UPDATE conflicts with the FOR KEY SHARE lock Postgres takes on a parent row when checking a foreign key, so every insert referencing a collection blocked behind unrelated document structure updates in it. FOR NO KEY UPDATE still self-conflicts, keeping structure writers mutually excluded, without blocking child row inserts.