Skip to content

Support pg_advisory_lock_shared #3758

Open
@bonsairobo

Description

@bonsairobo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions