<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>PostgreSQL on Walson Blog</title>
    <link>https://walson.de5.net/tags/postgresql/</link>
    <description>Recent content in PostgreSQL on Walson Blog</description>
    <generator>Hugo</generator>
    <language>zh-CN</language>
    <managingEditor>475166676@qq.com (Walson)</managingEditor>
    <webMaster>475166676@qq.com (Walson)</webMaster>
    <copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
    <lastBuildDate>Fri, 24 Apr 2026 10:00:00 +0800</lastBuildDate>
    <atom:link href="https://walson.de5.net/tags/postgresql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>积分并发扣款竞态 Bug 复盘：从 Lost Update 到三重防护</title>
      <link>https://walson.de5.net/posts/concurrent-credit-deduction-bug-postmortem/</link>
      <pubDate>Fri, 24 Apr 2026 10:00:00 +0800</pubDate><author>475166676@qq.com (Walson)</author>
      <guid>https://walson.de5.net/posts/concurrent-credit-deduction-bug-postmortem/</guid>
      <description>&lt;h2 id=&#34;前言&#34;&gt;前言&lt;/h2&gt;&#xA;&lt;p&gt;最近在我们的 AI 生成平台上遇到了一个 P0 级别的并发 Bug——用户同时发起多个生成任务时，积分扣款出现了竞态条件，导致积分被永久锁住。从发现到修复经历了两轮迭代（紧急修复 → 优化重构），本文完整记录这次复盘过程。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
