Re: BUG #17686: SELECT pg_advisory_lock(...) with low lock_timeout sometimes times out but the lock is acquired - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17686: SELECT pg_advisory_lock(...) with low lock_timeout sometimes times out but the lock is acquired
Date
Msg-id 146790.1668279112@sss.pgh.pa.us
Whole thread Raw
In response to BUG #17686: SELECT pg_advisory_lock(...) with low lock_timeout sometimes times out but the lock is acquired  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
Mike Adelson <mike.adelson314@gmail.com> writes:
> Glad to have the race condition confirmed. In my view the “real” fix
> here would be to offer an advisory locking function that accepts a
> timeout.

How would that remove the low-level race condition?

            regards, tom lane



pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #17686: SELECT pg_advisory_lock(...) with low lock_timeout sometimes times out but the lock is acquired
Next
From: Peter Gigowski
Date:
Subject: pg_prepared_statements missing column