I have found these related issues/pull requests
Relates to #3495
Description
As documented here.
The PgAdvisoryLock documentation has some language suggesting that the API should support shared locking, but it does not currently support it.
Prefered solution
I'm guessing we just need separate acquire_shared and acquire_exclusive methods on PgAdvisoryLock.
Should be compatible with #3495
Is this a breaking change? Why or why not?
Depends. I'd like to have an explicitly named acquire_exclusive method, which is different from the current acquire name. We could just deprecate the old one.
But #3495 is breaking, and I'd prefer to have that merged first.
I have found these related issues/pull requests
Relates to #3495
Description
As documented here.
The
PgAdvisoryLockdocumentation has some language suggesting that the API should support shared locking, but it does not currently support it.Prefered solution
I'm guessing we just need separate
acquire_sharedandacquire_exclusivemethods onPgAdvisoryLock.Should be compatible with #3495
Is this a breaking change? Why or why not?
Depends. I'd like to have an explicitly named
acquire_exclusivemethod, which is different from the currentacquirename. We could just deprecate the old one.But #3495 is breaking, and I'd prefer to have that merged first.