with_advisory_lock icon indicating copy to clipboard operation
with_advisory_lock copied to clipboard

raise exception if not in transaction

Open donbobka opened this issue 2 years ago • 0 comments

Should we raise exception to avoid incorrect usage of transaction: true? Another approach will be create transaction

Current behavior of library: it silently runs SELECT pg_advisory_xact_lock(...) that without transaction means lock with immediate unlock and then pass execution to block without active advisory lock.

donbobka avatar Apr 21 '23 04:04 donbobka