with_advisory_lock icon indicating copy to clipboard operation
with_advisory_lock copied to clipboard

Use built-in wait and timeout functionality if the database engine supports it

Open tmak opened this issue 2 years ago • 1 comments

This is regarding issue #80

tmak avatar Nov 05 '23 21:11 tmak

The only issue I see for PostgreSQL and using pg_advisory_lock is that it's unclear if the PostgreSQL client settings statement_timeout and lock_timeout apply, which would mean that it may not infinitely wait for the lock to be acquired and rather throw a PostgreSQL error.

tmak avatar Nov 06 '23 14:11 tmak