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

pgpool-II and node.JS #1

Open
yaronn opened this issue Mar 25, 2014 · 10 comments
Open

pgpool-II and node.JS #1

yaronn opened this issue Mar 25, 2014 · 10 comments

Comments

@yaronn
Copy link

yaronn commented Mar 25, 2014

Hi

Were you able to consume pgpool-II with the 'pg' module in Node.JS? I'm really struggling with those parameterized queries and would be great to hear if it is doable.

Thanks,
Yaron

@mbell8903
Copy link
Owner

I have yet to be able to do it. We ended up just going with node-pg built in connection pooling, however we have upgraded to postgres 9.3 and pgpool 3.3.0 and plan on retesting. I'll let you know once I have results.

@yaronn
Copy link
Author

yaronn commented Mar 25, 2014

Thanks! Was it the parameterized query issue that blocked you or was it something else? Which pgpool version did you use then?

@mbell8903
Copy link
Owner

It was the parametrized queries. We were using 3.1.2.

@mbell8903
Copy link
Owner

Also it looks like in the latest pull from master that it has some changes around parameterized queries.

@mbell8903
Copy link
Owner

I just updated the repo to match the original, so you might want to pull the latest, build and then retest

@yaronn
Copy link
Author

yaronn commented Mar 25, 2014

Thanks, I have used pgpool 3.3.2 and there is still the same issue. Some threads indicate a regression on that version on a similar issue so I am now checking pgpool 3.3.1. If that will fail then I'm not sure both libraries are interoperable today.

@yaronn
Copy link
Author

yaronn commented Mar 26, 2014

Good news - downgrading pg-pool from 3.3.2. to 3.3.1 seem to work well with parameterized queries. Doing more testing now.

@surjikal
Copy link

Have you guys tested this with 3.3.3? I'd also love to get more details on the parameterized query problem you guys are talking about.

I want to use pgpool with Bookshelf (uses knex, which uses pg internally).

@mbell8903
Copy link
Owner

Not yet

Sent from the trunk of an El Camino

On Aug 17, 2014, at 12:37 AM, Nick Porter notifications@github.com wrote:

Have you guys tested this with 3.3.3 ?


Reply to this email directly or view it on GitHub.

@yaronn
Copy link
Author

yaronn commented Aug 19, 2014

We use pgpool-3.3.3 with Node.JS and parameterized queries work well.

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

No branches or pull requests

3 participants