-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 client_encoding setting to support pg_bouncer when using libpq (#270) #356
Conversation
This one seems good to me, please merge. |
👍 |
Fix client_encoding setting to support pg_bouncer when using libpq (#270)
@Hebo thanks so much. |
Hey guys, just as a FYI, this change broke my app that's currently hosted on Heroku. Funny thing is the issue only arose when I deployed to Heroku. Locally it works fine... Here's a dump of the log:
|
I guess a quick fix would be to make encoding setting optional, |
Yeah I was thinking of only passing it into postgres if you hard set it explicitly on your connection parameters. Funny how small changes like this break the hell out of so many things. So it goes. |
@iToto possible to open an issue with steps to reproduce? |
Does the javascript driver have this same issue? The change should bring the native connection options up to parity with the JS ones. I've seen this error when using libpq v8.4, as the client_encoding option seems to have been added around 9.1. |
This was crashing our app on heroku as well. Downversioning to 1.0.x has temporarily fixed the issue on Heroku, but some of our devs are having an issue with the 1.0.x version locally. |
@badave your app is crashing in heroku now? Which version of node-postgres are you using? Using native driver or javascript? |
Hey Brian, the minor patch I submitted yesterday fixed this problem. Making client encoding optional allowed us to take out specfying it to postgres altogether, which is what had broken versions 1.1-1.2 for us. Currently our heroku boxes are happy with the latest version. On Fri, Jun 7, 2013 at 9:48 AM, Brian C [email protected] wrote:
|
okay sweet. |
sorry @brianc, didn't see this till today. However, I can confirm that my app is stable on heroku on version 2.0.0. Keep up the awesome work! 👍 |
no problemo! Keep in mind the type parsing changes in v2.0. I'll put On Mon, Jul 1, 2013 at 9:13 PM, iToto [email protected] wrote:
|
I don't think I'll be effected by that change. Thanks though |
add charset option for pdo_pgsql driver
Fix for #270
The same change needs to be made when using the native driver as with the JS driver.