-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: client.ref is not a function #2584
Comments
@brianc Didn't the pg-pool package depend on the version of pg with the ref/unref methods added? |
@fluggo kinda - pg-pool doesn't depend on pg, pg depends on pg-pool (i know...) and pg's dep allows semver minor floating. So if you have an old version of pg installed at exactly |
Thanks! |
thank you for your patience! Takes a bit to push a patch because i wait for tests to run |
k released new semver patch of pg-pool which should work with much older versions of |
Hello,

We use pg in our project, which has a pg-pool dependency such that every time we build a new docker container, it gets the latest version of pg-pool. This afternoon, when running a new container, it appears that the addition of the ref method in "Allow Node to exit if the pool is idle (#2568)" seems to be causing the project to fail with no changes to our code. In cloud run I get this error:
node-postgres/packages/pg-pool/index.js
Line 140 in 684cd09
There is no way to default to an earlier version of pg-pool within the project, so I was hoping I could get some help fixing this issue.
Thank You!
The text was updated successfully, but these errors were encountered: