TIL: One lock to rule them all

2026-09-13English

I've been running multiple migrations recently. A common step in all of them is a long cleanup action at the end. I ended up using postgres advisory locks and sqlx.

As part of a larger Today I've learned series, I dug a bit deeper using bpftrace to improve my understanding of how the locks actually work. Hope you will find it interesting as well

submitted by /u/realflakm
[link] [留言] Read original: https://www.reddit.com/r/programming/comments/1wf4277/til_one_lock_to_rule_them_all/

原文:https://www.a8q9.cn/en/article/en-til-one-lock-to-rule-them-all.html

相关文章