logoalt Hacker News

lirbankyesterday at 10:12 PM0 repliesview on HN

Nice - that's a good case for barriers too. When there's no row to SELECT FOR UPDATE against, you'd inject the barrier after acquiring the advisory lock and verify the second transaction blocks until the first commits.