Skip to content

Postgres support lock_timeout #15345

Closed

Description

@suonto

Issue Creation Checklist

  • I understand that my issue will be automatically closed if I don't fill in the requested information
  • I have read the contribution guidelines

Feature Description

Support passing lock_timeout to pg client.

Lock timeout support was added to pg in 8.8.0:

Implementation

Pick also 'lock_timeout' here:

const connectionConfig: ClientConfig = {

Describe why you would like this feature to be added to Sequelize

Lock timeout is useful. Otherwise the underlying tech wouldn't support it.

Is this feature dialect-specific?

  • No. This feature is relevant to Sequelize as a whole.
  • Yes. This feature only applies to the following dialect(s): postgres

Would you be willing to resolve this issue by submitting a Pull Request?

  • Yes, I have the time and I know how to start.
  • Yes, I have the time but I will need guidance.
  • No, I don't have the time, but my company or I are supporting Sequelize through donations on OpenCollective.
  • No, I don't have the time, and I understand that I will need to wait until someone from the community or maintainers is interested in implementing my feature.

Indicate your interest in the addition of this feature by adding the 👍 reaction. Comments such as "+1" will be removed.

Activity

  1. WikiRik commented on Nov 28, 2022

    @WikiRik
    Member

    Seems like you already know how to implement this, is there any reason you do not have the time to open a PR? Since it's just an option to pass to the node-postgres package I do not really see more work that needs to be done

  2. suonto commented on Nov 28, 2022

    @suonto
    ContributorAuthor

    I can try to make time. You're right, shouldn't take long.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions