Skip to content
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

Fix for pg authentication issue in node 6+ #19

Merged
merged 1 commit into from
May 19, 2016

Conversation

andywhite37
Copy link
Contributor

@andywhite37 andywhite37 commented May 16, 2016

Basically, in node 6+, postgrator is intermittently failing when trying to run the migrations. I don't know why it's intermittent, and not just an error everytime, but that seems to be what others are seeing. pg.js 4.1.1 (the latest pg.js version) appears to still have the issue, but using pg 4.5.5 or later appears to fix the issue.

- There is a change in `Buffer` in node 6 that causes an issue with
  authentication in the `pg`/`pg.js` modules.
- See brianc/node-postgres#1018
- Which references: brianc/node-postgres#1000
- This commit changes the pg library dependency to the version that
  contains the fix for this issue.
@rickbergfalk
Copy link
Owner

Thanks @andywhite37! I'll have this merged and published shortly

@rickbergfalk rickbergfalk merged commit 301ee29 into rickbergfalk:master May 19, 2016
@rickbergfalk
Copy link
Owner

This has been published to npm as version 2.8.1.

@andywhite37
Copy link
Contributor Author

Cool, thanks!

@andywhite37 andywhite37 deleted the auth-issue branch May 19, 2016 03:56
@andywhite37 andywhite37 restored the auth-issue branch May 19, 2016 03:56
@andywhite37 andywhite37 deleted the auth-issue branch August 17, 2016 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants