by Quekid5 · 2y ago · 0 comments
AFAIK the only correct way to do what you probably thought you were doing is "EXCLUSIVE" or "ACCESS EXCLUSIVE"... or two-phase commit or idempotency for the operations you're doing.
[0] https://www.postgresql.org/docs/current/explicit-locking.htm...
Are you sure that you're talking about the same locks? What are the pitfalls exactly?