mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-20 15:06:36 +00:00
CTE snapshot in READ COMMITTED can cause concurrent requests during period reset to lose one increment. Inline CASE in single UPDATE ensures PostgreSQL re-evaluates all expressions with latest row data. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>