-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
change pool.end behavior, add force argument [breaking change, v9?] #2149
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the idea - I'm not going to be able to merge this unless you can write some pretty comprehensive tests covering the feature as well - anything I merge I'm responsible for maintaining indefinitely and without tests that burden is unbearable!
the tests run in CI on every commit...I am preeeetty sure they're working. What commands exactly did you run & what was the output? |
Ok I see in your Readme to use |
@brianc I am trying to write better test for you here but I am running into this bug I mentioned earlier brianc/node-pg-pool#134 it is throwing off my test to have pool.end complete before the last pool.query, any plans on fixing that? |
@brianc ok I wrote better tests. Only problem is that bug #2163 is causing this line to be 19 instead of 20 https://github.com/brianc/node-postgres/pull/2149/files#diff-57867471f03f2f65dd6fde482c6f9ea2R48 and this line to be 9 instead of 10 https://github.com/brianc/node-postgres/pull/2149/files#diff-57867471f03f2f65dd6fde482c6f9ea2R58 fix that bug then I will update this to 10 and 20 instead of 9 and 19 |
Anyone have any thoughts on this PR? Anyone else think this should be the default behavior or is it just me? Also is this issue #2163 considered a bug that needs to be fixed? there are no comments on this PR or issue @brianc @charmander |
Sure, I think it makes sense for this to be the default behaviour. Is |
I don't think I would ever use |
does this line also need to be updated? by changing node-postgres/packages/pg-pool/index.js Line 300 in 2bd8fe8
|
Since the author has deleted their account and can’t update the PR anymore, I’ll propose a version of this in a new one. |
change
pool.end([cb])
behavior, add force argumentpool.end([force][, cb])