with_advisory_lock
with_advisory_lock copied to clipboard
raise exception if not in transaction
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.