Hacker News
new
past
comments
ask
show
jobs
points
by
anvevoice
2 hours ago
|
comments
by
lirbank
2 hours ago
|
next
[-]
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.
reply
by
deepsun
26 minutes ago
|
prev
|
next
[-]
I always did "INSERT ... ON CONFLICT DO NOTHING".
reply
by
klysm
1 hours ago
|
prev
|
[-]
Seems like a good way to materialize the conflict.
reply