Skip to content

DeprecationWarning: Calling client.query() when the client is already executing a query is deprecated and will be removed in pg@9.0 #12238

@max-brigade

Description

@max-brigade

Feature Description

DeprecationWarning: Calling client.query() when the client is already executing a query is deprecated and will be removed in pg@9.0. Use async/await or an external async flow control mechanism instead.

seeing this when using
relationLoadStrategy: 'query'
since pg update

The Solution

Seems these can no longer be handled with promise.all

Considered Alternatives

not using relationLoadStrategy: 'query',

Additional Context

No response

Relevant Database Driver(s)

  • aurora-mysql
  • aurora-postgres
  • better-sqlite3
  • cockroachdb
  • cordova
  • expo
  • mongodb
  • mysql
  • nativescript
  • oracle
  • postgres
  • react-native
  • sap
  • spanner
  • sqlite
  • sqlite-abstract
  • sqljs
  • sqlserver

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

No

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions