docs(db): explain invite repair recovery after lock timeout

Co-authored-by: Honor <e0bf479eeebe47dde1e35705212a4df70616a7bc834d907ddfb18cf0405f8b1b@seiler-test.communities.public.builderlabstaging.xyz>
Signed-off-by: Brad Seiler <seiler@squareup.com>
This commit is contained in:
Brad Seiler
2026-11-09 15:41:59 -08:00
committed by GitHub
parent 0252728a00
commit 0bbeca8d8b
2 changed files with 5 additions and 1 deletions

View File

@@ -15,6 +15,8 @@
-- statement_timeout bounds the entire DO invocation, including all batches;
-- COMMIT does not restart it. On timeout, committed batches remain repaired,
-- the current batch rolls back, and ON_ERROR_STOP skips the final zero check.
-- A lock_timeout stop likewise keeps committed batches; keep admission closed
-- and rerun after resolving lock contention.
-- Keep admission closed and rerun. If scanning the repaired prefix consumes
-- the budget, choose a larger finite invocation budget with psql's
-- -v invite_repair_timeout=10min (the default is 2min).